summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-11-11 14:43:30 +0000
committerCarl Hetherington <cth@carlh.net>2019-11-11 14:43:30 +0000
commit62c70b89d989f5ca257a467e0496262449d0901b (patch)
treea3c448c90d247d0c43d8f31529981e1a26682522
parentdc18bbe7fb73ceaa169ff27e56d00bf32b509519 (diff)
Try to improve debug logging when putting video MXFs into DCPs.
-rw-r--r--src/lib/reel_writer.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc
index 064b169b7..67606cee2 100644
--- a/src/lib/reel_writer.cc
+++ b/src/lib/reel_writer.cc
@@ -299,10 +299,14 @@ ReelWriter::finish ()
video_to /= _film->dir (_film->dcp_name());
video_to /= video_asset_filename (_picture_asset, _reel_index, _reel_count, _content_summary);
+ LOG_GENERAL ("Must put %1 into DCP at %2", video_from.string(), video_to.string());
+ LOG_GENERAL ("%2: %2", video_from.string(), boost::filesystem::is_regular_file(video_from) ? "yes" : "no");
+ LOG_GENERAL ("%1: %2", video_to.string(), boost::filesystem::is_regular_file(video_to) ? "yes" : "no");
+
boost::system::error_code ec;
boost::filesystem::create_hard_link (video_from, video_to, ec);
if (ec) {
- LOG_WARNING_NC ("Hard-link failed; copying instead");
+ LOG_WARNING ("Hard-link failed (%1); copying instead", ec.message());
shared_ptr<Job> job = _job.lock ();
if (job) {
job->sub (_("Copying video file into DCP"));