From 0e06203fb85887dc5ead6a10773bfa1ca57ef19c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 10 Nov 2018 00:38:19 +0000 Subject: More logging for DCP import. --- src/lib/dcp.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/dcp.cc b/src/lib/dcp.cc index 28e5c4fd2..fa9f5f721 100644 --- a/src/lib/dcp.cc +++ b/src/lib/dcp.cc @@ -20,6 +20,9 @@ #include "dcp.h" #include "config.h" +#include "film.h" +#include "log.h" +#include "compose.hpp" #include "dcp_content.h" #include #include @@ -32,6 +35,8 @@ using std::list; using std::string; using boost::shared_ptr; +#define LOG_GENERAL(...) _dcp_content->film()->log()->log (String::compose (__VA_ARGS__), LogEntry::TYPE_GENERAL); + /** Find all the CPLs in our directories, cross-add assets and return the CPLs */ list > DCP::cpls () const @@ -43,6 +48,7 @@ DCP::cpls () const shared_ptr dcp (new dcp::DCP (i)); dcp->read (false, 0, true); dcps.push_back (dcp); + LOG_GENERAL ("Reading DCP %1: %2 CPLs", i.string(), dcp->cpls().size()); BOOST_FOREACH (shared_ptr i, dcp->cpls()) { cpls.push_back (i); } -- cgit v1.2.3