Skip to content

Commit

Permalink
fixup! go-template/_template/internal/log: swapped zap logger with lo…
Browse files Browse the repository at this point in the history
…g/slog; added trace context handler; added gRPC interceptor logger
  • Loading branch information
zalgonoise committed Jun 13, 2024
1 parent 922eb4f commit 3ed5dad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _template/internal/log/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestNew(t *testing.T) {
wants: slog.New(&SpanContextHandler{
withSpanID: true,
handler: slog.NewJSONHandler(os.Stderr, &slog.HandlerOptions{
AddSource: true,
AddSource: false,
Level: slog.LevelDebug,
}),
}),
Expand All @@ -32,7 +32,7 @@ func TestNew(t *testing.T) {
wants: slog.New(&SpanContextHandler{
withSpanID: true,
handler: slog.NewJSONHandler(os.Stderr, &slog.HandlerOptions{
AddSource: true,
AddSource: false,
Level: slog.LevelError,
}),
}),
Expand All @@ -43,7 +43,7 @@ func TestNew(t *testing.T) {
wants: slog.New(&SpanContextHandler{
withSpanID: true,
handler: slog.NewJSONHandler(os.Stderr, &slog.HandlerOptions{
AddSource: true,
AddSource: false,
Level: slog.LevelInfo,
}),
}),
Expand Down

0 comments on commit 3ed5dad

Please sign in to comment.