mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] Make client IP logging configurable (#1799)
This commit is contained in:
@@ -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})
|
||||
|
Reference in New Issue
Block a user