]> git.proxmox.com Git - pve-manager.git/commitdiff
pve7to8: add "notice" log level
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 28 Jun 2023 11:06:40 +0000 (13:06 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 3 Jul 2023 11:12:03 +0000 (13:12 +0200)
can be useful for things that might be OK, so where warn or even fail
would be to drastic, but that should be still checked as they seem
odd.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/CLI/pve7to8.pm

index 2ae5c6a582aa28259ca647163b8c023c9e1a006e..4cc7d31435e9867bcef78d183d9cf192beb48c6c 100644 (file)
@@ -64,12 +64,14 @@ my $forced_legacy_cgroup = 0;
 my $counters = {
     pass => 0,
     skip => 0,
+    notice => 0,
     warn => 0,
     fail => 0,
 };
 
 my $level2color = {
     pass => 'green',
+    notice => 'bold',
     warn => 'yellow',
     fail => 'bold red',
 };
@@ -91,6 +93,7 @@ my $log_line = sub {
 sub log_pass { $log_line->('pass', @_); }
 sub log_info { $log_line->('info', @_); }
 sub log_skip { $log_line->('skip', @_); }
+sub log_notice { $log_line->('notice', @_); }
 sub log_warn { $log_line->('warn', @_);  }
 sub log_fail { $log_line->('fail', @_); }