diff --git a/cmd/authd/daemon/config.go b/cmd/authd/daemon/config.go index fa70e928a..6bacb36fb 100644 --- a/cmd/authd/daemon/config.go +++ b/cmd/authd/daemon/config.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "log/slog" "os" "path/filepath" "strings" @@ -97,6 +98,7 @@ func setVerboseMode(level int) { fallthrough default: log.SetLevel(log.DebugLevel) + slog.SetLogLoggerLevel(slog.LevelDebug) } log.SetReportCaller(reportCaller) } diff --git a/internal/services/manager.go b/internal/services/manager.go index 1abfa9f6f..39b1c86f0 100644 --- a/internal/services/manager.go +++ b/internal/services/manager.go @@ -3,6 +3,7 @@ package services import ( "context" + "log/slog" "github.com/ubuntu/authd" "github.com/ubuntu/authd/internal/brokers" @@ -13,7 +14,6 @@ import ( "github.com/ubuntu/authd/internal/services/permissions" "github.com/ubuntu/authd/internal/users" "github.com/ubuntu/decorate" - "golang.org/x/exp/slog" "google.golang.org/grpc" )