diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2022-12-28 10:11:55 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2023-01-11 19:42:31 +0100 |
commit | 3503eca97178bb97bf2a24d456e717578c5e7382 (patch) | |
tree | efd37ff37226d4eb91c86d45e38b85b07fe84f78 | |
parent | 4a9251414d6672468ff0ee0f9c722a89cb44b26c (diff) | |
download | ccache-3503eca97178bb97bf2a24d456e717578c5e7382.tar.gz |
feat: Activate logging for command mode options
This makes it possible to check ordinary log messages when debugging
"ccache -c" and similar options.
-rw-r--r-- | src/core/mainoptions.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/mainoptions.cpp b/src/core/mainoptions.cpp index a4bda39e..32a89b4e 100644 --- a/src/core/mainoptions.cpp +++ b/src/core/mainoptions.cpp @@ -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()); |