Skip to content

Commit 567b342

Browse files
committed
chore: improve accesslog
1 parent 0a87911 commit 567b342

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

interceptor/kaccesslog/accesslog.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ func Interceptor() kod.Interceptor {
1515
attrs := []slog.Attr{
1616
slog.Any("req", req),
1717
slog.Any("reply", reply),
18-
slog.String("component", info.Component),
1918
slog.String("method", info.Method),
2019
}
2120

@@ -27,7 +26,7 @@ func Interceptor() kod.Interceptor {
2726

2827
// check if impl L(ctx context.Context) method
2928
if l, ok := info.Impl.(interface {
30-
L(ctx context.Context) *slog.Logger
29+
L(context.Context) *slog.Logger
3130
}); ok {
3231
l.L(ctx).LogAttrs(ctx, level, "accesslog", attrs...)
3332
}

0 commit comments

Comments
 (0)