Corrected docker/swarm discovery from previous refactoring (#446)

This commit is contained in:
Geoff Bourne
2025-08-23 13:39:01 -05:00
committed by GitHub
parent 4055f39b19
commit 35500a758b
9 changed files with 95 additions and 47 deletions
+5 -1
View File
@@ -24,6 +24,7 @@ func showVersion() {
type CliConfig struct {
Version bool `usage:"Output version and exit"`
Debug bool `usage:"Enable debug logs"`
Trace bool `usage:"Enable trace logs"`
ServerConfig server.Config `flatten:"true"`
}
@@ -40,7 +41,10 @@ func main() {
os.Exit(0)
}
if cliConfig.Debug {
if cliConfig.Trace {
logrus.SetLevel(logrus.TraceLevel)
logrus.Trace("Trace logs enabled")
} else if cliConfig.Debug {
logrus.SetLevel(logrus.DebugLevel)
logrus.Debug("Debug logs enabled")
}