update logging library

This commit is contained in:
Elio Bischof 2024-12-04 13:23:03 +01:00
parent 047f1eee97
commit 0d44a1b1df
No known key found for this signature in database
GPG Key ID: 7B383FDE4DDBF1BD
6 changed files with 3 additions and 16 deletions

View File

@ -27,9 +27,6 @@ func MustNewConfig(v *viper.Viper) *Config {
)
logging.OnError(err).Fatal("unable to read config")
err = config.Log.SetLogger()
logging.OnError(err).Fatal("unable to set logger")
slog.SetDefault(config.Log.Slog())
id.Configure(config.Machine)

View File

@ -38,9 +38,6 @@ func mustNewMigrationConfig(v *viper.Viper) *Migration {
config := new(Migration)
mustNewConfig(v, config)
err := config.Log.SetLogger()
logging.OnError(err).Fatal("unable to set logger")
slog.SetDefault(config.Log.Slog())
id.Configure(config.Machine)
@ -52,9 +49,6 @@ func mustNewProjectionsConfig(v *viper.Viper) *ProjectionsConfig {
config := new(ProjectionsConfig)
mustNewConfig(v, config)
err := config.Log.SetLogger()
logging.OnError(err).Fatal("unable to set logger")
slog.SetDefault(config.Log.Slog())
id.Configure(config.Machine)

View File

@ -33,9 +33,6 @@ func MustNewConfig(v *viper.Viper) *Config {
)
logging.OnError(err).Fatal("unable to read default config")
err = config.Log.SetLogger()
logging.OnError(err).Fatal("unable to set logger")
slog.SetDefault(config.Log.Slog())
return config

View File

@ -83,9 +83,6 @@ func MustNewConfig(v *viper.Viper) *Config {
)
logging.OnError(err).Fatal("unable to read default config")
err = config.Log.SetLogger()
logging.OnError(err).Fatal("unable to set logger")
slog.SetDefault(config.Log.Slog())
id.Configure(config.Machine)

2
go.mod
View File

@ -64,7 +64,7 @@ require (
github.com/superseriousbusiness/exifremove v0.0.0-20210330092427-6acd27eac203
github.com/ttacon/libphonenumber v1.2.1
github.com/twilio/twilio-go v1.22.2
github.com/zitadel/logging v0.6.2-0.20241204114331-82224bfc6d2a
github.com/zitadel/logging v0.6.2-0.20241204121729-ea91bf60a83a
github.com/zitadel/oidc/v3 v3.32.0
github.com/zitadel/passwap v0.6.0
github.com/zitadel/saml v0.2.0

2
go.sum
View File

@ -739,6 +739,8 @@ github.com/zenazn/goji v1.0.1 h1:4lbD8Mx2h7IvloP7r2C0D6ltZP6Ufip8Hn0wmSK5LR8=
github.com/zenazn/goji v1.0.1/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
github.com/zitadel/logging v0.6.2-0.20241204114331-82224bfc6d2a h1:ITlhu6sJZBhq7XO1OxOoy3QL9EWmHRRKQSOqSSLCEWg=
github.com/zitadel/logging v0.6.2-0.20241204114331-82224bfc6d2a/go.mod h1:asotyKZQ4HXepSR3j0o++qGKeQiFt0ENDLTM4BG7tD0=
github.com/zitadel/logging v0.6.2-0.20241204121729-ea91bf60a83a h1:8lHtxjYdreKLivpa5KbvhI/BimesagWndQqDGdT7xo4=
github.com/zitadel/logging v0.6.2-0.20241204121729-ea91bf60a83a/go.mod h1:asotyKZQ4HXepSR3j0o++qGKeQiFt0ENDLTM4BG7tD0=
github.com/zitadel/oidc/v3 v3.32.0 h1:Mw0EPZRC6h+OXAuT0Uk2BZIjJQNHLqUpaJCm6c3IByc=
github.com/zitadel/oidc/v3 v3.32.0/go.mod h1:DyE/XClysRK/ozFaZSqlYamKVnTh4l6Ln25ihSNI03w=
github.com/zitadel/passwap v0.6.0 h1:m9F3epFC0VkBXu25rihSLGyHvWiNlCzU5kk8RoI+SXQ=