summaryrefslogtreecommitdiff
path: root/internal/federation/federatingdb/update.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/update.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/update.go')
-rw-r--r--internal/federation/federatingdb/update.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/federation/federatingdb/update.go b/internal/federation/federatingdb/update.go
index 04ce39a77..570729a31 100644
--- a/internal/federation/federatingdb/update.go
+++ b/internal/federation/federatingdb/update.go
@@ -42,7 +42,7 @@ import (
//
// The library makes this call only after acquiring a lock first.
func (f *federatingDB) Update(ctx context.Context, asType vocab.Type) error {
- l := log.Entry{}
+ l := log.Entry{}.WithContext(ctx)
if log.Level() >= level.DEBUG {
i, err := marshalItem(asType)