mirror of https://github.com/digint/btrbk
btrbk: log messages go to stderr instead of stdout (more consistent since btrfs-progs error messages also go to stderr)
parent
444fba4a50
commit
40201c562b
|
@ -5,6 +5,8 @@ btrbk-current
|
|||
subvolume tree, as well as security related code parts.
|
||||
* Correct handling of symlinks to btrfs subvolumes (closes: #12).
|
||||
* Added configuration option "snapshot_name" (closes: #5).
|
||||
* Log messages now go to stderr, only the summary is printed on
|
||||
stdout.
|
||||
* Bugfix: allow "0" as subvolume name (closes: #10).
|
||||
* Bugfix: allow "/" as volume name (closes: #15).
|
||||
* Bugfix: check source AND targets for determining snapshot postfix
|
||||
|
|
10
btrbk
10
btrbk
|
@ -132,11 +132,11 @@ sub HELP_MESSAGE
|
|||
print STDERR "For additional information, see $PROJECT_HOME\n";
|
||||
}
|
||||
|
||||
sub TRACE { my $t = shift; print STDOUT "... $t\n" if($loglevel >= 4); }
|
||||
sub DEBUG { my $t = shift; print STDOUT "$t\n" if($loglevel >= 3); }
|
||||
sub INFO { my $t = shift; print STDOUT "$t\n" if($loglevel >= 2); }
|
||||
sub WARN { my $t = shift; print STDOUT "WARNING: $t\n" if($loglevel >= 1); }
|
||||
sub ERROR { my $t = shift; print STDOUT "ERROR: $t\n"; }
|
||||
sub TRACE { my $t = shift; print STDERR "... $t\n" if($loglevel >= 4); }
|
||||
sub DEBUG { my $t = shift; print STDERR "$t\n" if($loglevel >= 3); }
|
||||
sub INFO { my $t = shift; print STDERR "$t\n" if($loglevel >= 2); }
|
||||
sub WARN { my $t = shift; print STDERR "WARNING: $t\n" if($loglevel >= 1); }
|
||||
sub ERROR { my $t = shift; print STDERR "ERROR: $t\n"; }
|
||||
|
||||
|
||||
sub run_cmd($;$)
|
||||
|
|
Loading…
Reference in New Issue