From 18dbb86a411c3194a668600ff66b6df07c2d1ff7 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 2 Apr 2017 13:09:53 +0200 Subject: Improve log messages when adding archives Signed-off-by: Florian Pritz --- lib/App/BorgRestore.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/App/BorgRestore.pm b/lib/App/BorgRestore.pm index 749f60b..238fa50 100644 --- a/lib/App/BorgRestore.pm +++ b/lib/App/BorgRestore.pm @@ -324,7 +324,7 @@ sub _handle_added_archives { } }); - $log->debugf("Finished parsing borg output after %.5fs. Adding to db", Time::HiRes::gettimeofday - $start); + my $borg_time = Time::HiRes::gettimeofday; $self->{db}->begin_work; $self->{db}->add_archive_name($archive); @@ -334,7 +334,7 @@ sub _handle_added_archives { $self->{db}->vacuum; my $end = Time::HiRes::gettimeofday(); - $log->debugf("Adding archive finished after: %.5fs", $end - $start); + $log->debugf("Adding archive finished after: %.5fs (parsing borg output took %.5fs)", $end - $start, $borg_time - $start); } } -- cgit v1.2.3-24-g4f1b