From 310f2c805524e252f514b03f8e52fe05b7016a0a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 29 Jan 2017 23:51:52 +0000 Subject: [PATCH] Better debug log message. --- src/lib/writer.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/writer.cc b/src/lib/writer.cc index c0dbf0562..49ba41a64 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -379,6 +379,8 @@ try DCPOMATIC_ASSERT (i != _queue.rend()); ++_pushed_to_disk; + /* For the log message below */ + int const awaiting = _reels[_queue.front().reel].last_written_video_frame(); lock.unlock (); /* i is valid here, even though we don't hold a lock on the mutex, @@ -386,7 +388,7 @@ try thread could erase the last item in the list. */ - LOG_GENERAL ("Writer full; pushes %1 to disk", i->frame); + LOG_GENERAL ("Writer full; pushes %1 to disk while awaiting %2", i->frame, awaiting); i->encoded->write_via_temp ( _film->j2c_path (i->reel, i->frame, i->eyes, true), -- 2.30.2