From 1de842ce398d1369845eccb31e44aa21d6edbfb7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 15 May 2017 16:21:30 +0100 Subject: [PATCH] Add some debug for Igor. --- src/wx/content_panel.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index 446bf1121..dcd2d4389 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -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 #include #include @@ -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, FilmViewer* viewer) : _timeline_dialog (0) , _parent (n) @@ -545,6 +549,12 @@ ContentPanel::setup () BOOST_FOREACH (shared_ptr 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 dcp = dynamic_pointer_cast (i); bool const needs_kdm = dcp && dcp->needs_kdm (); bool const needs_assets = dcp && dcp->needs_assets (); -- 2.30.2