Add uid/euid to macOS debug message.
authorCarl Hetherington <cth@carlh.net>
Tue, 18 Jan 2022 18:24:57 +0000 (19:24 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 19 Jan 2022 19:28:19 +0000 (20:28 +0100)
src/tools/dcpomatic_disk_writer.cc

index ef384bbbac5d27b2bd0967d98f3c9c818234ead3..67de360d3348bafd18c09c14e6c49ab206535645 100644 (file)
@@ -45,6 +45,7 @@
 extern "C" {
 #include <lwext4/file_dev.h>
 }
+#include <unistd.h>
 #include <xpc/xpc.h>
 #endif
 
@@ -285,7 +286,7 @@ main ()
         * redirect this to a file in /var/log
         */
        dcpomatic_log.reset(new StdoutLog(LogEntry::TYPE_DISK));
-       LOG_DISK("dcpomatic_disk_writer %1 started", dcpomatic_git_commit);
+       LOG_DISK("dcpomatic_disk_writer %1 started uid=%2 euid=%3", dcpomatic_git_commit, getuid(), geteuid());
 #else
        /* XXX: this is a hack, but I expect we'll need logs and I'm not sure if there's
         * a better place to put them.