diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-18 19:24:57 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-01-19 20:39:40 +0100 |
| commit | 2c87d13f0009dda9944e4b4b3935262a7753d516 (patch) | |
| tree | 5ca52eb389c66a730a5225030e89b093deaf8026 | |
| parent | 9b9202c7f9fc26fcef0984189aaed366b7c6d726 (diff) | |
Add uid/euid to macOS debug message.
| -rw-r--r-- | src/tools/dcpomatic_disk_writer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_disk_writer.cc b/src/tools/dcpomatic_disk_writer.cc index ef384bbba..67de360d3 100644 --- a/src/tools/dcpomatic_disk_writer.cc +++ b/src/tools/dcpomatic_disk_writer.cc @@ -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. |
