diff --git a/ChangeLog b/ChangeLog index 718c164..bf937dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/btrbk b/btrbk index 706152a..aa425a2 100755 --- a/btrbk +++ b/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($;$)