mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Update internal/logging/logging.go
Co-authored-by: George Jenkins <gvjenkins@gmail.com> Signed-off-by: Evans Mungai <mbuevans@gmail.com>
This commit is contained in:
parent
99fe9b3b9b
commit
e63b4d92cb
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ func (l *LogHolder) Logger() *slog.Logger {
|
|||
if lg := l.logger.Load(); lg != nil {
|
||||
return lg
|
||||
}
|
||||
return slog.Default() // We rarely get here, just being defensive
|
||||
return slog.New(slog.DiscardHandler) // Should never be reached
|
||||
}
|
||||
|
||||
// SetLogger sets the logger for the LogHolder. If nil, sets the default logger.
|
||||
|
|
|
|||
Loading…
Reference in a new issue