summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2023-02-02 20:27:37 +0100
committerJoel Rosdahl <joel@rosdahl.net>2023-02-03 14:22:24 +0100
commit4b4f3bba6f53071b4d197178a9ce444e06df7bc6 (patch)
tree47743e67bfe069f44fe1807f499ece79eaa5c414
parent306aa8eebfe7f3442c176ed5ebd42f8767b0125c (diff)
downloadccache-4b4f3bba6f53071b4d197178a9ce444e06df7bc6.tar.gz
feat: Log executed command lines on Windows
-rw-r--r--src/execute.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/execute.cpp b/src/execute.cpp
index a217d658..de684fd0 100644
--- a/src/execute.cpp
+++ b/src/execute.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2002 Andrew Tridgell
-// Copyright (C) 2011-2022 Joel Rosdahl and other contributors
+// Copyright (C) 2011-2023 Joel Rosdahl and other contributors
//
// See doc/AUTHORS.adoc for a complete list of contributors.
//
@@ -58,6 +58,8 @@ static int win32execute(const char* path,
int
execute(Context& ctx, const char* const* argv, Fd&& fd_out, Fd&& fd_err)
{
+ LOG("Executing {}", Util::format_argv_for_logging(argv));
+
return win32execute(argv[0],
argv,
1,