From 8effc77788a201efe87636c94e16436da26b5199 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Tue, 17 Sep 2024 19:35:47 +0000 Subject: [chore] improved federatingdb logging in cases of unknown iri / types (#3313) * improved federatingdb logging in cases of unknown iri / types, add new log methods * whoops; forgot to wrap log argument in serialize{} ! * use debug instead of warn level * switch last entry to Debug --- internal/federation/federatingdb/exists.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'internal/federation/federatingdb/exists.go') diff --git a/internal/federation/federatingdb/exists.go b/internal/federation/federatingdb/exists.go index 43ebd566a..abac9960e 100644 --- a/internal/federation/federatingdb/exists.go +++ b/internal/federation/federatingdb/exists.go @@ -20,9 +20,6 @@ package federatingdb import ( "context" "net/url" - - "codeberg.org/gruf/go-kv" - "github.com/superseriousbusiness/gotosocial/internal/log" ) // Exists returns true if the database has an entry for the specified @@ -32,10 +29,5 @@ import ( // // Implementation note: this just straight up isn't implemented, and doesn't *really* need to be either. func (f *federatingDB) Exists(ctx context.Context, id *url.URL) (exists bool, err error) { - l := log.WithContext(ctx). - WithFields(kv.Fields{ - {"id", id}, - }...) - l.Debug("entering Exists") return false, nil } -- cgit v1.2.3