Skip to content

Commit

Permalink
use empty logger
Browse files Browse the repository at this point in the history
Signed-off-by: denis-tingaikin <[email protected]>
  • Loading branch information
denis-tingaikin committed Dec 18, 2024
1 parent f1bf307 commit b8b5359
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/tools/log/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const (
var (
isTracingEnabled int32 = 0
globalLogger Logger = Default()
emptyLogger Logger = new(emptylogger)
)

// Logger - unified interface for logging
Expand Down Expand Up @@ -72,7 +73,7 @@ func FromContext(ctx context.Context) Logger {
if ok {
return rv
}
return L()
return emptyLogger
}

// Join - concatenates new logger with existing loggers
Expand Down

0 comments on commit b8b5359

Please sign in to comment.