summaryrefslogtreecommitdiff
path: root/internal/federation/federatingdb/undo.go
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2023-02-17 20:05:43 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-17 19:05:43 +0000
commitb4d18887d3deec8556f8b2de2369a768df01eb29 (patch)
tree9fd25cbeac8ef88fdf2e54b2efe5df58e81fa083 /internal/federation/federatingdb/undo.go
parent[bug] Pass context in logging middleware (#1514) (diff)
downloadgotosocial-b4d18887d3deec8556f8b2de2369a768df01eb29.tar.xz
[chore] Update more log calls to include context (#1517)
In #1476 we updated log.WithFields() but we forgot about log.WithField(). Also updates a few explicit log.Entry{} creations.
Diffstat (limited to 'internal/federation/federatingdb/undo.go')
-rw-r--r--internal/federation/federatingdb/undo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/federation/federatingdb/undo.go b/internal/federation/federatingdb/undo.go
index 913befe93..b239aabb4 100644
--- a/internal/federation/federatingdb/undo.go
+++ b/internal/federation/federatingdb/undo.go
@@ -32,7 +32,7 @@ import (
)
func (f *federatingDB) Undo(ctx context.Context, undo vocab.ActivityStreamsUndo) error {
- l := log.Entry{}
+ l := log.Entry{}.WithContext(ctx)
if log.Level() >= level.DEBUG {
i, err := marshalItem(undo)