summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-01-20 14:45:06 +0100
committerCarl Hetherington <cth@carlh.net>2022-01-20 14:45:06 +0100
commit8f29f6073baa12fe4e9c145e6d0cd0e0c97319ee (patch)
treeb90d6420dd51c4486c9659f733802248b92ad375 /src
parent6dca08ace0dc76780be499d122b93a11a12d9af1 (diff)
Add some logging to notify_post().
Diffstat (limited to 'src')
-rw-r--r--src/tools/dcpomatic_disk.cc16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_disk.cc b/src/tools/dcpomatic_disk.cc
index ec5d8e782..772eaea91 100644
--- a/src/tools/dcpomatic_disk.cc
+++ b/src/tools/dcpomatic_disk.cc
@@ -167,7 +167,21 @@ public:
#ifdef DCPOMATIC_OSX
LOG_DISK_NC("Sending notification to writer daemon");
- notify_post ("com.dcpomatic.disk.writer.start");
+ auto result = notify_post ("com.dcpomatic.disk.writer.start");
+ if (result != NOTIFY_STATUS_OK ) {
+ LOG_DISK_NC("Notification did not return OK: %1", result);
+ switch (result) {
+ case NOTIFY_STATUS_INVALID_NAME:
+ LOG_DISK_NC("i.e. INVALID_NAME");
+ break;
+ case NOTIFY_STATUS_FAILED:
+ LOG_DISK_NC("i.e. FAILED");
+ break;
+ case NOTIFY_STATUS_NOT_AUTHORIZED:
+ LOG_DISK_NC("i.e. NOT_AUTHORIZED");
+ break;
+ }
+ }
#endif
}