summaryrefslogtreecommitdiff
path: root/internal/federation/federatingdb/move.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/move.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/move.go')
-rw-r--r--internal/federation/federatingdb/move.go11
1 files changed, 1 insertions, 10 deletions
diff --git a/internal/federation/federatingdb/move.go b/internal/federation/federatingdb/move.go
index 681a9cff2..6ae299e30 100644
--- a/internal/federation/federatingdb/move.go
+++ b/internal/federation/federatingdb/move.go
@@ -27,7 +27,6 @@ import (
"errors"
"fmt"
- "codeberg.org/gruf/go-logger/v2/level"
"github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
@@ -37,15 +36,7 @@ import (
)
func (f *federatingDB) Move(ctx context.Context, move vocab.ActivityStreamsMove) error {
- if log.Level() >= level.DEBUG {
- i, err := marshalItem(move)
- if err != nil {
- return err
- }
- l := log.WithContext(ctx).
- WithField("move", i)
- l.Debug("entering Move")
- }
+ log.DebugKV(ctx, "move", serialize{move})
activityContext := getActivityContext(ctx)
if activityContext.internal {