outpost: add trace log level

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-05-10 18:09:52 +02:00
parent 3d0a853449
commit 8eaaaae2a7
2 changed files with 3 additions and 0 deletions

View File

@ -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":

View File

@ -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