commit 3e190a44568d2d423094aadc47cddd4e2f911cf2
parent 619f9322d2c23fa1ae57e76b0c1b09e7c0870bd8
Author: lash <dev@holbrook.no>
Date: Fri, 3 Jan 2025 17:29:17 +0000
Remove special treatment of sessionid in logger
Diffstat:
1 file changed, 7 insertions(+), 11 deletions(-)
diff --git a/logging/vanilla.go b/logging/vanilla.go
@@ -163,17 +163,13 @@ func (v Vanilla) argsToString(ctx context.Context, args []any) string {
var s string
if ctx != nil {
- sessionId, ok := ctx.Value("SessionId").(string)
- if ok {
- args = append(args, "session-id", sessionId)
- }
- }
- for _, k := range(v.ctxkey) {
- v := ctx.Value(k)
- if v != nil {
- v, ok := v.(string)
- if ok {
- args = append(args, "x-" + k, v)
+ for _, k := range(v.ctxkey) {
+ v := ctx.Value(k)
+ if v != nil {
+ v, ok := v.(string)
+ if ok {
+ args = append(args, "x-" + k, v)
+ }
}
}
}