projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6dca08a
)
Add some logging to notify_post().
author
Carl Hetherington
<cth@carlh.net>
Thu, 20 Jan 2022 13:45:06 +0000
(14:45 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 20 Jan 2022 13:45:06 +0000
(14:45 +0100)
src/tools/dcpomatic_disk.cc
patch
|
blob
|
history
diff --git
a/src/tools/dcpomatic_disk.cc
b/src/tools/dcpomatic_disk.cc
index ec5d8e782db122dc4a15814432aa3ddae5bb2f2c..772eaea910cfd6d4c39b24ebcea53d2b4fbf0a81 100644
(file)
--- 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");
#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
}
#endif
}