summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-03-23 18:26:36 +0100
committerMatthew Heon <mheon@redhat.com>2022-03-30 15:36:05 -0400
commit1e8c8e912ad1cb4b7c40206edc94ec1cb125ccf2 (patch)
tree5cbbd4903e9a4eeb71230587fc03dd6d70decad9 /pkg
parent07c5946d9c2b3892a0562a5b78d2061b0c0d1c25 (diff)
downloadpodman-1e8c8e912ad1cb4b7c40206edc94ec1cb125ccf2.tar.gz
podman-1e8c8e912ad1cb4b7c40206edc94ec1cb125ccf2.tar.bz2
podman-1e8c8e912ad1cb4b7c40206edc94ec1cb125ccf2.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>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/machine/qemu/machine.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go
index b440d9de2..79f75c144 100644
--- a/pkg/machine/qemu/machine.go
+++ b/pkg/machine/qemu/machine.go
@@ -428,7 +428,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")
}