Index: sources/storage/Logger.cpp =================================================================== diff -u -rc9f8f8cf3c6c37fc6460d8675c62c9442c4d4263 -re64766e5551e32c3ffd55c6b1fcb222128a1c325 --- sources/storage/Logger.cpp (.../Logger.cpp) (revision c9f8f8cf3c6c37fc6460d8675c62c9442c4d4263) +++ sources/storage/Logger.cpp (.../Logger.cpp) (revision e64766e5551e32c3ffd55c6b1fcb222128a1c325) @@ -321,8 +321,10 @@ if (logPathName.isEmpty()) logPathName = _logPathNames[eLogDebug]; _logFileName = logPathName + fileName; - FileHandler::write(_logFileName, mContent + "\r\n", true); + bool isWritten = FileHandler::write(_logFileName, mContent + "\r\n", true); + if(!isWritten) emit didLogIOFailed(); + // console out the log if enabled. if (_enableConsoleOut) { qDebug().noquote() << mContent; @@ -436,6 +438,12 @@ // disabled coco begin validated: This needs user interaction to export to USB device // has been tested manually LOG_DEBUG(QString("Export %1 ended: %2").arg(_logNames[_exportLogsType]).arg(_exportLogsWatcher.result())); + + qDebug()<< "_exportLogsWatcher.result()" << _exportLogsWatcher.result(); + if(!_exportLogsWatcher.result()){ + emit didLogIOFailed(); + return; + } emit didExportLogs(); } // disabled coco end