]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
feat: Activate logging for command mode options
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 28 Dec 2022 09:11:55 +0000 (10:11 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 11 Jan 2023 18:42:31 +0000 (19:42 +0100)
This makes it possible to check ordinary log messages when debugging
"ccache -c" and similar options.

src/core/mainoptions.cpp

index a4bda39eaffdbd2a467c69d9f4d3f15f76e16688..32a89b4e9e0df41ab3e6b67c46bebf6d0221aa2c 100644 (file)
@@ -23,6 +23,7 @@
 #include <File.hpp>
 #include <Hash.hpp>
 #include <InodeCache.hpp>
+#include <Logging.hpp>
 #include <ProgressBar.hpp>
 #include <TemporaryFile.hpp>
 #include <ThreadPool.hpp>
@@ -516,6 +517,7 @@ process_main_options(int argc, const char* const* argv)
          != -1) {
     Config config;
     config.read();
+    Logging::init(config);
 
     UmaskScope umask_scope(config.umask());