documented log levels
This commit is contained in:
parent
4aa78b8530
commit
28745ebffa
|
@ -368,6 +368,11 @@ sub name2gid {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# currently used log levels:
|
||||||
|
# 0 - fatal error, backup failed
|
||||||
|
# 3 - global progress messages, like start and end of a backup, statistics.
|
||||||
|
# 5 - errors which prevent a file from being backed up
|
||||||
|
# 10 - progress messages for single files.
|
||||||
sub log {
|
sub log {
|
||||||
my ($self, $level, $msg) = @_;
|
my ($self, $level, $msg) = @_;
|
||||||
if ($level <= $self->{log_level}) {
|
if ($level <= $self->{log_level}) {
|
||||||
|
|
Loading…
Reference in New Issue