From 77b095a8c32c423dea495f94babe49d7f169f060 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Fri, 20 Sep 2024 13:30:33 +0000 Subject: [chore] ensure consistent caller name fetching regardless of compiler inlining (#3323) * move logging levels into log package itself * ensure inconsistent inlining doesn't mess with log calling function name * remove unused global variable * fix log level --- internal/processing/workers/fromfediapi.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/processing/workers/fromfediapi.go') diff --git a/internal/processing/workers/fromfediapi.go b/internal/processing/workers/fromfediapi.go index d8abaa865..d3e714674 100644 --- a/internal/processing/workers/fromfediapi.go +++ b/internal/processing/workers/fromfediapi.go @@ -23,7 +23,6 @@ import ( "time" "codeberg.org/gruf/go-kv" - "codeberg.org/gruf/go-logger/v2/level" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/federation/dereferencing" @@ -69,7 +68,7 @@ func (p *Processor) ProcessFromFediAPI(ctx context.Context, fMsg *messages.FromF // Include GTSModel in logs if appropriate. if fMsg.GTSModel != nil && - log.Level() >= level.DEBUG { + log.Level() >= log.DEBUG { fields = append(fields, kv.Field{ "model", fMsg.GTSModel, }) -- cgit v1.2.3