pve7to8: add "notice" log level

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>
This commit is contained in:
Thomas Lamprecht 2023-06-28 13:06:40 +02:00
parent c18858872e
commit ada2f621ad

View 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', @_); }