diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-11-10 00:38:19 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-11-10 00:38:19 +0000 |
| commit | 0e06203fb85887dc5ead6a10773bfa1ca57ef19c (patch) | |
| tree | 07efaf31eaf9e6bfd1877fba328deebb0195c399 | |
| parent | 1e77753ef4119b6d7df7d2255b1a1d8d6af951de (diff) | |
More logging for DCP import.
| -rw-r--r-- | src/lib/dcp.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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 <dcp/dcp.h> #include <dcp/decrypted_kdm.h> @@ -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<shared_ptr<dcp::CPL> > DCP::cpls () const @@ -43,6 +48,7 @@ DCP::cpls () const shared_ptr<dcp::DCP> 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<dcp::CPL> i, dcp->cpls()) { cpls.push_back (i); } |
