]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
feat: Log executed command lines on Windows
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 2 Feb 2023 19:27:37 +0000 (20:27 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Fri, 3 Feb 2023 13:22:24 +0000 (14:22 +0100)
src/execute.cpp

index a217d65815f1af7674e3258a1fdec1ee9ceba242..de684fd004b1c9152940476b19ec1b8c2e2a83ec 100644 (file)
@@ -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,