mirror of https://github.com/containers/podman.git
fix podman machine start log level detection
Use logrus.IsLevelEnabled because this will cover all levels below it as well. Currently this condition would fail for the trace log level. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
parent
59dc70bb42
commit
da58911306
|
|
@ -430,7 +430,7 @@ func (v *MachineVM) Start(name string, _ machine.StartOptions) error {
|
|||
|
||||
// Disable graphic window when not in debug mode
|
||||
// Done in start, so we're not suck with the debug level we used on init
|
||||
if logrus.GetLevel() != logrus.DebugLevel {
|
||||
if !logrus.IsLevelEnabled(logrus.DebugLevel) {
|
||||
cmd = append(cmd, "-display", "none")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue