]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Log when starting/stopping recompression
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 5 Feb 2020 20:17:50 +0000 (21:17 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 5 Feb 2020 20:17:50 +0000 (21:17 +0100)
src/compress.cpp

index a1cf5b08e2a29292c58010d7ca7d3427a77ff846..fa24262de8af91d8fb47e3fe8bec2e432149b4bf 100644 (file)
@@ -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