diff --git a/internal/federation/federatingdb/accept.go b/internal/federation/federatingdb/accept.go index 3bd84849d..7ecf41ee4 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 e089f7e42..9a03ede92 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 474890c34..2a31108f2 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 9fcb6ce1a..082d76e60 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 9e7bd3d5b..6ce08ccb6 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 d719bf16d..dfc998abb 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