From ff77bf1d1194254958ff9848f614c466420f167b Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 4 Oct 2021 16:00:35 +0200 Subject: [PATCH] fix logs not working properly (#264) --- internal/federation/federatingdb/accept.go | 2 +- internal/federation/federatingdb/announce.go | 2 +- internal/federation/federatingdb/create.go | 2 +- internal/federation/federatingdb/undo.go | 2 +- internal/federation/federatingdb/update.go | 2 +- internal/federation/federatingdb/util.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) 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