From 001ba1644fc6aa54f91fcaaa62ae7e5de2313bc1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 28 Apr 2020 13:46:46 +0200 Subject: [PATCH] Add a log message and actually use device_for_write(). --- src/lib/copy_to_drive_job.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/copy_to_drive_job.cc b/src/lib/copy_to_drive_job.cc index 8a8073ec2..173d286f5 100644 --- a/src/lib/copy_to_drive_job.cc +++ b/src/lib/copy_to_drive_job.cc @@ -22,6 +22,7 @@ #include "copy_to_drive_job.h" #include "compose.hpp" #include "exceptions.h" +#include "dcpomatic_log.h" #include #include #include @@ -64,7 +65,8 @@ CopyToDriveJob::json_name () const void CopyToDriveJob::run () { - if (!_nanomsg.send(String::compose(DISK_WRITER_WRITE "\n%1\n%2\n", _dcp.string(), _drive.device()), 2000)) { + LOG_DISK("Sending write request to disk writer for %1 %2", _dcp.string(), _drive.device_for_write()); + if (!_nanomsg.send(String::compose(DISK_WRITER_WRITE "\n%1\n%2\n", _dcp.string(), _drive.device_for_write()), 2000)) { throw CommunicationFailedError (); } -- 2.30.2