diff options
author | 2024-09-17 19:35:47 +0000 | |
---|---|---|
committer | 2024-09-17 21:35:47 +0200 | |
commit | 8effc77788a201efe87636c94e16436da26b5199 (patch) | |
tree | a848340e71b2bd9a48c45c6d3376b9b0486eb98f /internal/federation/federatingdb/exists.go | |
parent | [bugfix] Fix pending approval check (#3316) (diff) | |
download | gotosocial-8effc77788a201efe87636c94e16436da26b5199.tar.xz |
[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
Diffstat (limited to 'internal/federation/federatingdb/exists.go')
-rw-r--r-- | internal/federation/federatingdb/exists.go | 8 |
1 files changed, 0 insertions, 8 deletions
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 } |