mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 01:13:19 +00:00
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:
parent
c18858872e
commit
ada2f621ad
@ -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', @_); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user