fix: honor debuglog cmd option in application controller (#25591)

Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
This commit is contained in:
Papapetrou Patroklos 2025-12-10 11:03:26 +02:00 committed by GitHub
parent 7ebdf10cbf
commit 1e9f4aa793
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,7 +105,12 @@ func NewCommand() *cobra.Command {
)
cli.SetLogFormat(cmdutil.LogFormat)
cli.SetLogLevel(cmdutil.LogLevel)
if debugLog {
cli.SetLogLevel("debug")
} else {
cli.SetLogLevel(cmdutil.LogLevel)
}
ctrl.SetLogger(logutils.NewLogrusLogger(logutils.NewWithCurrentConfig()))