From: Carl Hetherington Date: Tue, 28 Apr 2020 11:46:46 +0000 (+0200) Subject: Add a log message and actually use device_for_write(). X-Git-Tag: v2.15.66~2 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=001ba1644fc6aa54f91fcaaa62ae7e5de2313bc1;hp=722aa0353914f07531867bee147149895324a964 Add a log message and actually use device_for_write(). --- 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 (); }