diff options
author | 2022-04-29 15:53:04 +0200 | |
---|---|---|
committer | 2022-04-29 15:53:04 +0200 | |
commit | d93e8ddf75565429486039ff4102e704473ca163 (patch) | |
tree | fe325c2a402fb0072aeadb1af4a7ee1ddf59a457 /internal/federation/federatingactor.go | |
parent | [chore] Inboxes for iri test (#508) (diff) | |
download | gotosocial-d93e8ddf75565429486039ff4102e704473ca163.tar.xz |
[chore] Add Federatingactor.Send() tests and log call (#509)
* expose testrig util functions
* add tests for federatingActor
* rename some suite vars
Diffstat (limited to 'internal/federation/federatingactor.go')
-rw-r--r-- | internal/federation/federatingactor.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/federation/federatingactor.go b/internal/federation/federatingactor.go index 25745492d..1d6f4b937 100644 --- a/internal/federation/federatingactor.go +++ b/internal/federation/federatingactor.go @@ -23,6 +23,7 @@ import ( "net/http" "net/url" + "github.com/sirupsen/logrus" "github.com/superseriousbusiness/activity/pub" "github.com/superseriousbusiness/activity/streams/vocab" ) @@ -55,6 +56,7 @@ func newFederatingActor(c pub.CommonBehavior, s2s pub.FederatingProtocol, db pub // method will guaranteed work for non-custom Actors. For custom actors, // care should be used to not call this method if only C2S is supported. func (f *federatingActor) Send(c context.Context, outbox *url.URL, t vocab.Type) (pub.Activity, error) { + logrus.Infof("federating actor: send activity %s via outbox %s", t.GetTypeName(), outbox) return f.actor.Send(c, outbox, t) } |