mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-10 12:12:15 +00:00
set default slog
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package ready
|
||||
|
||||
import (
|
||||
"log/slog"
|
||||
"time"
|
||||
|
||||
"github.com/mitchellh/mapstructure"
|
||||
@@ -35,5 +36,7 @@ func MustNewConfig(v *viper.Viper) *Config {
|
||||
err = config.Log.SetLogger()
|
||||
logging.OnError(err).Fatal("unable to set logger")
|
||||
|
||||
slog.SetDefault(config.Log.Slog())
|
||||
|
||||
return config
|
||||
}
|
||||
|
Reference in New Issue
Block a user