update logging

This commit is contained in:
Elio Bischof 2024-11-29 10:27:22 +01:00
parent 1e20936bbc
commit 9aed08f7f1
No known key found for this signature in database
GPG Key ID: 7B383FDE4DDBF1BD
3 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package start
import (
"errors"
"log/slog"
"time"
@ -116,6 +117,8 @@ func MustNewConfig(v *viper.Viper) *Config {
slog.SetDefault(config.Log.Slog())
logging.WithError(errors.New("the original error")).Error("log error message")
err = config.Tracing.NewTracer()
logging.OnError(err).Fatal("unable to set tracer")

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.20241129004254-6fd497654103
github.com/zitadel/logging v0.6.2-0.20241129092636-57022f0c6854
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

@ -743,6 +743,8 @@ github.com/zitadel/logging v0.6.2-0.20241128235432-e4276c762137 h1:E+Ir5PRBVSih3
github.com/zitadel/logging v0.6.2-0.20241128235432-e4276c762137/go.mod h1:DyabloyDEDPGVRXGHKzWuX8wBBs7w4qo6WyTC5Xs7UQ=
github.com/zitadel/logging v0.6.2-0.20241129004254-6fd497654103 h1:bUTUT9fzuxy83GbliR0wRLneRSPdzhCS2oZGa2I47Jc=
github.com/zitadel/logging v0.6.2-0.20241129004254-6fd497654103/go.mod h1:DyabloyDEDPGVRXGHKzWuX8wBBs7w4qo6WyTC5Xs7UQ=
github.com/zitadel/logging v0.6.2-0.20241129092636-57022f0c6854 h1:dELvAtUFyFfSf/H6O53bL3LxCYI8rEqjeVcArPPIDPk=
github.com/zitadel/logging v0.6.2-0.20241129092636-57022f0c6854/go.mod h1:DyabloyDEDPGVRXGHKzWuX8wBBs7w4qo6WyTC5Xs7UQ=
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=