From: Joel Rosdahl Date: Wed, 5 Feb 2020 20:17:50 +0000 (+0100) Subject: Log when starting/stopping recompression X-Git-Tag: v4.0~652 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=016b82b08f77ee3e591bf5d1a6beecac8097bd45;p=thirdparty%2Fccache.git Log when starting/stopping recompression --- diff --git a/src/compress.cpp b/src/compress.cpp index a1cf5b08e..fa24262de 100644 --- a/src/compress.cpp +++ b/src/compress.cpp @@ -98,6 +98,7 @@ recompress_file(const std::string& stats_file, return; } + cc_log("Recompressing %s to level %d", cache_file.path().c_str(), level); AtomicFile atomic_new_file(cache_file.path(), AtomicFile::Mode::binary); auto writer = create_writer(atomic_new_file.stream(), *reader, @@ -123,6 +124,7 @@ recompress_file(const std::string& stats_file, Stat::stat(cache_file.path(), Stat::OnError::log).size_on_disk(); stats_update_size(stats_file.c_str(), new_size - old_size, 0); + cc_log("Recompression of %s done", cache_file.path().c_str()); } void