diff --git a/internal/outpost/ak/global.go b/internal/outpost/ak/global.go index 03aec39e0..67d822a46 100644 --- a/internal/outpost/ak/global.go +++ b/internal/outpost/ak/global.go @@ -16,8 +16,12 @@ import ( func doGlobalSetup(outpost api.Outpost, globalConfig api.Config) { l := log.WithField("logger", "authentik.outpost") m := outpost.Managed.Get() + level, ok := outpost.Config[ConfigLogLevel] + if !ok { + level = "info" + } if m == nil || *m == "" { - switch outpost.Config[ConfigLogLevel].(string) { + switch level.(string) { case "trace": log.SetLevel(log.TraceLevel) case "debug":