Add some logging to the KDM creator.
authorCarl Hetherington <cth@carlh.net>
Wed, 20 Jul 2022 10:20:00 +0000 (12:20 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 20 Jul 2022 10:20:00 +0000 (12:20 +0200)
src/tools/dcpomatic_kdm.cc

index 98d701fab3dc1ab92dbfb98f60dbb74e9ea5cf09..7a8d7cf349d532749ba69b8cfaf217d7bc232d41 100644 (file)
 #include "lib/compose.hpp"
 #include "lib/config.h"
 #include "lib/cross.h"
 #include "lib/compose.hpp"
 #include "lib/config.h"
 #include "lib/cross.h"
+#include "lib/dcpomatic_log.h"
 #include "lib/dkdm_wrapper.h"
 #include "lib/exceptions.h"
 #include "lib/dkdm_wrapper.h"
 #include "lib/exceptions.h"
+#include "lib/file_log.h"
 #include "lib/job_manager.h"
 #include "lib/kdm_with_metadata.h"
 #include "lib/screen.h"
 #include "lib/job_manager.h"
 #include "lib/kdm_with_metadata.h"
 #include "lib/screen.h"
@@ -203,6 +205,8 @@ public:
                _export_dkdm->Bind (wxEVT_BUTTON, bind (&DOMFrame::export_dkdm_clicked, this));
 
                setup_sensitivity ();
                _export_dkdm->Bind (wxEVT_BUTTON, bind (&DOMFrame::export_dkdm_clicked, this));
 
                setup_sensitivity ();
+
+               dcpomatic_log = make_shared<FileLog>(State::write_path("kdm.log"));
        }
 
 private:
        }
 
 private: