summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-04-02 13:09:53 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-04-02 13:42:15 +0200
commit18dbb86a411c3194a668600ff66b6df07c2d1ff7 (patch)
tree2a7b292383f7185b0d87cbccab0dc8b75b5fe5ac
parent6abe30a71dbf2938ca8e6efdfa53f0b7f6732d38 (diff)
downloadApp-BorgRestore-18dbb86a411c3194a668600ff66b6df07c2d1ff7.tar.gz
App-BorgRestore-18dbb86a411c3194a668600ff66b6df07c2d1ff7.tar.xz
Improve log messages when adding archives
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--lib/App/BorgRestore.pm4
1 files 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);
}
}