Add git commits to writer log files. v2.15.68
authorCarl Hetherington <cth@carlh.net>
Thu, 30 Apr 2020 18:07:46 +0000 (20:07 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 30 Apr 2020 18:07:46 +0000 (20:07 +0200)
src/tools/dcpomatic_disk.cc
src/tools/dcpomatic_disk_writer.cc

index 3532560b7f1923a178eb2053e4fe67b268f3332b..6f72bfed0e749b672e5d1208afb560b3fbbfa3f7 100644 (file)
@@ -34,6 +34,7 @@
 #include "lib/copy_to_drive_job.h"
 #include "lib/job_manager.h"
 #include "lib/disk_writer_messages.h"
+#include "lib/version.h"
 #include <wx/wx.h>
 #include <boost/process.hpp>
 #ifdef DCPOMATIC_WINDOWS
@@ -112,7 +113,7 @@ public:
                 */
                dcpomatic_log.reset(new FileLog(config_path() / "disk.log"));
                dcpomatic_log->set_types (dcpomatic_log->types() | LogEntry::TYPE_DISK);
-               LOG_DISK_NC("dcpomatic_disk started");
+               LOG_DISK("dcpomatic_disk %1 started", dcpomatic_git_commit);
 
                drive_refresh ();
 
index d22bff4128368e5a03282910cfd6c072002c4e60..66f34794347e3fd6885e2ae012cca2278b76944c 100644 (file)
@@ -18,6 +18,7 @@
 
 */
 
+#include "lib/version.h"
 #include "lib/disk_writer_messages.h"
 #include "lib/compose.hpp"
 #include "lib/exceptions.h"
@@ -510,7 +511,7 @@ main ()
         * redirect this to a file in /var/log
         */
        dcpomatic_log.reset(new StdoutLog(LogEntry::TYPE_DISK));
-       LOG_DISK_NC("dcpomatic_disk_writer started");
+       LOG_DISK("dcpomatic_disk_writer %1 started", dcpomatic_git_commit);
 #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.