diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-03-23 18:26:36 +0100 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-03-23 19:10:58 +0100 |
commit | da58911306ad213e1312ac4d1dd3125c214c0527 (patch) | |
tree | 0ef5ce0f1c73daa8838bbdbb82c79a72ce505c8e | |
parent | 59dc70bb42725e18782c2791987e58f466326ceb (diff) | |
download | podman-da58911306ad213e1312ac4d1dd3125c214c0527.tar.gz podman-da58911306ad213e1312ac4d1dd3125c214c0527.tar.bz2 podman-da58911306ad213e1312ac4d1dd3125c214c0527.zip |
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>
-rw-r--r-- | pkg/machine/qemu/machine.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go index 89451cb44..667398fdc 100644 --- a/pkg/machine/qemu/machine.go +++ b/pkg/machine/qemu/machine.go @@ -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") } |