diff options
author | 2023-05-21 17:12:47 +0200 | |
---|---|---|
committer | 2023-05-21 16:12:47 +0100 | |
commit | 107237c8e84c541d7f24095dcce7abaf5d973a7e (patch) | |
tree | b8721da6c56172dad5bb290516f7a0526bbc2236 /internal/gtscontext/log_hooks.go | |
parent | [bugfix] Start + stop caches properly for testrig + pruning (#1804) (diff) | |
download | gotosocial-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.go | 2 |
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}) |