From 8eaaaae2a749175b6de8d7d1a54a9f8c4293258a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 10 May 2021 18:09:52 +0200 Subject: [PATCH] outpost: add trace log level Signed-off-by: Jens Langhammer --- outpost/pkg/ak/global.go | 2 ++ outpost/pkg/proxy/api.go | 1 + 2 files changed, 3 insertions(+) diff --git a/outpost/pkg/ak/global.go b/outpost/pkg/ak/global.go index b9512fc90..108803ec3 100644 --- a/outpost/pkg/ak/global.go +++ b/outpost/pkg/ak/global.go @@ -20,6 +20,8 @@ func doGlobalSetup(config map[string]interface{}) { }, }) switch config[ConfigLogLevel].(string) { + case "trace": + log.SetLevel(log.TraceLevel) case "debug": log.SetLevel(log.DebugLevel) case "info": diff --git a/outpost/pkg/proxy/api.go b/outpost/pkg/proxy/api.go index 87d982a78..a17d9d446 100644 --- a/outpost/pkg/proxy/api.go +++ b/outpost/pkg/proxy/api.go @@ -16,6 +16,7 @@ func (s *Server) Refresh() error { s.logger.Debug("Providers have not changed, not updating") return nil } + s.logger.Tracef("%+v\n", providers) bundles := s.bundleProviders(providers) s.updateHTTPServer(bundles) return nil