summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-09-19 15:16:53 +0100
committerCarl Hetherington <cth@carlh.net>2016-09-19 15:16:53 +0100
commit785d0368875953180c905a175b16b023869690f7 (patch)
tree4df08279b9adabf47ef5d6ef3a633f0fdd5533d0 /src
parent2233f5b77b379ab043edb00095b2e372fa3e1d8b (diff)
Add some debugging logs for #953.
Diffstat (limited to 'src')
-rw-r--r--src/lib/reel_writer.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc
index d742818ae..e2827251b 100644
--- a/src/lib/reel_writer.cc
+++ b/src/lib/reel_writer.cc
@@ -130,7 +130,13 @@ ReelWriter::write_frame_info (Frame frame, Eyes eyes, dcp::FrameInfo info) const
{
FILE* file = 0;
boost::filesystem::path info_file = _film->info_file (_period);
+
bool const read = boost::filesystem::exists (info_file);
+ LOG_GENERAL (
+ "Checked %1 (exists %2) length is %3 perms are %4",
+ info_file, read ? 1 : 0, boost::filesystem::file_size (info_file), int(boost::filesystem::status(info_file).permissions())
+ );
+
if (read) {
file = fopen_boost (info_file, "r+b");
} else {