]> git.proxmox.com Git - pve-guest-common.git/commitdiff
vzdump: always lower-case level in message logging base method
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 5 Jul 2023 13:01:16 +0000 (15:01 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 5 Jul 2023 14:21:21 +0000 (16:21 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/VZDump/Plugin.pm

index ada4c5e3f5ba857de9f5c738782c80f7dc387473..8b045880b5bff6aa3d547e9ff74e2d436d8b641e 100644 (file)
@@ -24,7 +24,7 @@ sub debugmsg {
 
     return if !$msg;
 
-    my $level = $log_level->{$mtype} ? $mtype : 'err';
+    my $level = $log_level->{lc($mtype)} ? lc($mtype) : 'err';
     my $pre = $log_level->{$level};
 
     my $timestr = strftime ("%F %H:%M:%S", CORE::localtime);