Tidy and fix logging.
[dcpomatic.git] / src / tools / dcpomatic.cc
index 1a87a2872ee684269e727faf5c86a94db8ffe8e6..bd0c40e889d9c977d543766fb75d4255063cfc02 100644 (file)
@@ -76,6 +76,7 @@
 #include "lib/audio_content.h"
 #include "lib/check_content_change_job.h"
 #include "lib/text_content.h"
+#include "lib/dcpomatic_log.h"
 #include <dcp/exceptions.h>
 #include <dcp/raw_convert.h>
 #include <wx/generic/aboutdlgg.h>
@@ -402,6 +403,7 @@ public:
                film->set_name (path.filename().generic_string());
                film->write_metadata ();
                set_film (film);
+               dcpomatic_log = film->log ();
        }
 
        void load_film (boost::filesystem::path file)