summaryrefslogtreecommitdiff
path: root/internal/federation/federatingdb/delete.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-09-17 19:35:47 +0000
committerLibravatar GitHub <noreply@github.com>2024-09-17 21:35:47 +0200
commit8effc77788a201efe87636c94e16436da26b5199 (patch)
treea848340e71b2bd9a48c45c6d3376b9b0486eb98f /internal/federation/federatingdb/delete.go
parent[bugfix] Fix pending approval check (#3316) (diff)
downloadgotosocial-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/delete.go')
-rw-r--r--internal/federation/federatingdb/delete.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/federation/federatingdb/delete.go b/internal/federation/federatingdb/delete.go
index 931320940..c628bd2d1 100644
--- a/internal/federation/federatingdb/delete.go
+++ b/internal/federation/federatingdb/delete.go
@@ -37,6 +37,8 @@ import (
//
// The library makes this call only after acquiring a lock first.
func (f *federatingDB) Delete(ctx context.Context, id *url.URL) error {
+ log.DebugKV(ctx, "id", id)
+
activityContext := getActivityContext(ctx)
if activityContext.internal {
return nil // Already processed.
@@ -81,9 +83,7 @@ func (f *federatingDB) Delete(ctx context.Context, id *url.URL) error {
return nil
}
- // Log at debug level, as lots of these could indicate federation
- // issues between remote and this instance, or help with debugging.
- log.Debugf(ctx, "received delete for unknown target: %s", uriStr)
+ log.Debugf(ctx, "unknown iri: %s", uriStr)
return nil
}