summaryrefslogtreecommitdiff
path: root/internal/gtscontext/log_hooks.go
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2023-05-21 17:12:47 +0200
committerLibravatar GitHub <noreply@github.com>2023-05-21 16:12:47 +0100
commit107237c8e84c541d7f24095dcce7abaf5d973a7e (patch)
treeb8721da6c56172dad5bb290516f7a0526bbc2236 /internal/gtscontext/log_hooks.go
parent[bugfix] Start + stop caches properly for testrig + pruning (#1804) (diff)
downloadgotosocial-107237c8e84c541d7f24095dcce7abaf5d973a7e.tar.xz
[feature] Make client IP logging configurable (#1799)
Diffstat (limited to 'internal/gtscontext/log_hooks.go')
-rw-r--r--internal/gtscontext/log_hooks.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/gtscontext/log_hooks.go b/internal/gtscontext/log_hooks.go
index 2fe43e488..94300cbb7 100644
--- a/internal/gtscontext/log_hooks.go
+++ b/internal/gtscontext/log_hooks.go
@@ -34,7 +34,7 @@ func init() {
}
return kvs
})
- // Client IP middleware hook.
+ // Public Key ID middleware hook.
log.Hook(func(ctx context.Context, kvs []kv.Field) []kv.Field {
if id := PublicKeyID(ctx); id != "" {
return append(kvs, kv.Field{K: "pubKeyID", V: id})