From 45cddb4ac7f4a68320519ff88779505704b08e75 Mon Sep 17 00:00:00 2001 From: erik Date: Tue, 26 Mar 2024 16:53:02 +0100 Subject: [PATCH] Add logging --- modules/forgefed/federation_service.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/forgefed/federation_service.go b/modules/forgefed/federation_service.go index ee63ed013d..713e4d1dbb 100644 --- a/modules/forgefed/federation_service.go +++ b/modules/forgefed/federation_service.go @@ -39,6 +39,7 @@ func LikeActivity(ctx context.Context, form any, repositoryID int64) (int, strin // parse actorID (person) actorURI := activity.Actor.GetID().String() + log.Info("actorURI was: %v", actorURI) federationHost, err := GetFederationHostForUri(ctx, actorURI) if err != nil { return http.StatusInternalServerError, "Wrong FederationHost", err @@ -130,6 +131,7 @@ func CreateFederationHostFromAP(ctx context.Context, actorID forgefed.ActorID) ( func GetFederationHostForUri(ctx context.Context, actorURI string) (*forgefed.FederationHost, error) { // parse actorID (person) + log.Info("Input was: %v", actorURI) rawActorID, err := forgefed.NewActorID(actorURI) if err != nil { return nil, err