diff --git a/internal/federation/federatingdb/accept.go b/internal/federation/federatingdb/accept.go index 3bd84849..7ecf41ee 100644 --- a/internal/federation/federatingdb/accept.go +++ b/internal/federation/federatingdb/accept.go @@ -39,7 +39,7 @@ func (f *federatingDB) Accept(ctx context.Context, accept vocab.ActivityStreamsA }, ) - if l.Level >= logrus.DebugLevel { + if f.log.Level >= logrus.DebugLevel { i, err := marshalItem(accept) if err != nil { return err diff --git a/internal/federation/federatingdb/announce.go b/internal/federation/federatingdb/announce.go index e089f7e4..9a03ede9 100644 --- a/internal/federation/federatingdb/announce.go +++ b/internal/federation/federatingdb/announce.go @@ -35,7 +35,7 @@ func (f *federatingDB) Announce(ctx context.Context, announce vocab.ActivityStre }, ) - if l.Level >= logrus.DebugLevel { + if f.log.Level >= logrus.DebugLevel { i, err := marshalItem(announce) if err != nil { return err diff --git a/internal/federation/federatingdb/create.go b/internal/federation/federatingdb/create.go index 474890c3..2a31108f 100644 --- a/internal/federation/federatingdb/create.go +++ b/internal/federation/federatingdb/create.go @@ -50,7 +50,7 @@ func (f *federatingDB) Create(ctx context.Context, asType vocab.Type) error { }, ) - if l.Level >= logrus.DebugLevel { + if f.log.Level >= logrus.DebugLevel { i, err := marshalItem(asType) if err != nil { return err diff --git a/internal/federation/federatingdb/undo.go b/internal/federation/federatingdb/undo.go index 9fcb6ce1..082d76e6 100644 --- a/internal/federation/federatingdb/undo.go +++ b/internal/federation/federatingdb/undo.go @@ -37,7 +37,7 @@ func (f *federatingDB) Undo(ctx context.Context, undo vocab.ActivityStreamsUndo) }, ) - if l.Level >= logrus.DebugLevel { + if f.log.Level >= logrus.DebugLevel { i, err := marshalItem(undo) if err != nil { return err diff --git a/internal/federation/federatingdb/update.go b/internal/federation/federatingdb/update.go index 9e7bd3d5..6ce08ccb 100644 --- a/internal/federation/federatingdb/update.go +++ b/internal/federation/federatingdb/update.go @@ -47,7 +47,7 @@ func (f *federatingDB) Update(ctx context.Context, asType vocab.Type) error { }, ) - if l.Level >= logrus.DebugLevel { + if f.log.Level >= logrus.DebugLevel { i, err := marshalItem(asType) if err != nil { return err diff --git a/internal/federation/federatingdb/util.go b/internal/federation/federatingdb/util.go index d719bf16..dfc998ab 100644 --- a/internal/federation/federatingdb/util.go +++ b/internal/federation/federatingdb/util.go @@ -69,7 +69,7 @@ func (f *federatingDB) NewID(ctx context.Context, t vocab.Type) (idURL *url.URL, }, ) - if l.Level >= logrus.DebugLevel { + if f.log.Level >= logrus.DebugLevel { i, err := marshalItem(t) if err != nil { return nil, err