Better debug log message.
authorCarl Hetherington <cth@carlh.net>
Sun, 29 Jan 2017 23:51:52 +0000 (23:51 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 29 Jan 2017 23:51:52 +0000 (23:51 +0000)
src/lib/writer.cc

index c0dbf0562631de24d2d5b1fdfbbc78aa340375a6..49ba41a64c34d74fbc82c418f81f9e1b221aa17f 100644 (file)
@@ -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),