Add some debug for Igor.
authorCarl Hetherington <cth@carlh.net>
Mon, 15 May 2017 15:21:30 +0000 (16:21 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 15 May 2017 15:21:30 +0000 (16:21 +0100)
src/wx/content_panel.cc

index 446bf11218335ba40c102b120d706cd694365b61..dcd2d438906b847fb3a2996501fa8333856da0a6 100644 (file)
@@ -37,6 +37,8 @@
 #include "lib/case_insensitive_sorter.h"
 #include "lib/playlist.h"
 #include "lib/config.h"
+#include "lib/log.h"
+#include "lib/compose.hpp"
 #include <wx/wx.h>
 #include <wx/notebook.h>
 #include <wx/listctrl.h>
@@ -54,6 +56,8 @@ using boost::weak_ptr;
 using boost::dynamic_pointer_cast;
 using boost::optional;
 
+#define LOG_GENERAL(...) _film->log()->log (String::compose (__VA_ARGS__), LogEntry::TYPE_GENERAL);
+
 ContentPanel::ContentPanel (wxNotebook* n, boost::shared_ptr<Film> film, FilmViewer* viewer)
        : _timeline_dialog (0)
        , _parent (n)
@@ -545,6 +549,12 @@ ContentPanel::setup ()
        BOOST_FOREACH (shared_ptr<Content> i, content) {
                int const t = _content->GetItemCount ();
                bool const valid = i->paths_valid ();
+
+               /* Temporary debugging for Igor */
+               BOOST_FOREACH (boost::filesystem::path j, i->paths()) {
+                       LOG_GENERAL ("Check %1 %2 answer %3", j.string(), boost::filesystem::exists(j) ? "yes" : "no", valid ? "yes" : "no");
+               }
+
                shared_ptr<DCPContent> dcp = dynamic_pointer_cast<DCPContent> (i);
                bool const needs_kdm = dcp && dcp->needs_kdm ();
                bool const needs_assets = dcp && dcp->needs_assets ();