Fix flag collision with logger

This commit is contained in:
2025-04-22 10:45:11 +02:00
parent 258dcc88e7
commit 46e871b626
4 changed files with 5 additions and 7 deletions

View File

@@ -57,9 +57,8 @@ func main() {
flag.Parse()
args := flag.Args()
level := logger.ParseLevel(*utils.LogLevel)
logger.Init(level)
logger.Info("Initializing with log level: %s", level.String())
logger.InitFlag()
logger.Info("Initializing with log level: %s", logger.GetLevel().String())
// The plan is:
// Load all commands