Bug support trace loglevel
Add trace loglevel as valid level for ContainerRuntimeConfig as documented and current crio can support this level.
@@ -447,9 +447,10 @@ func validateUserContainerRuntimeConfig(cfg *mcfgv1.ContainerRuntimeConfig) erro
"warn": true,
"info": true,
"debug": true,
+ "trace": true,
}
if !validLogLevels[ctrcfg.LogLevel] {
- return fmt.Errorf("invalid LogLevel %q, must be one of error, fatal, panic, warn, info, or debug", ctrcfg.LogLevel)
+ return fmt.Errorf("invalid LogLevel %q, must be one of error, fatal, panic, warn, info, debug, or trace", ctrcfg.LogLevel)
}
}
