Index: sources/cloudsync/CloudSyncController.cpp =================================================================== diff -u -r961d3e51d08fe466d21aa56092c7d3d69e92e4b5 -r5a4a26f106ba03759e3a89b19690fa678f8a3aca --- sources/cloudsync/CloudSyncController.cpp (.../CloudSyncController.cpp) (revision 961d3e51d08fe466d21aa56092c7d3d69e92e4b5) +++ sources/cloudsync/CloudSyncController.cpp (.../CloudSyncController.cpp) (revision 5a4a26f106ba03759e3a89b19690fa678f8a3aca) @@ -526,11 +526,17 @@ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // writing the message into the buffer. LOG_APPED_UI( vInpBuff ); + if(!QFile::exists(_date_inp_File)){ + Storage::FileHandler::makeFolder(_location); + } if ( ! Storage::FileHandler::write(_date_inp_File, vInpBuff + "\n") ) { error = eError_LogFileInp; args = { _date_inp_File }; ok = false; goto lErr; } return ok; lErr: - toLog(error, args); + // don't send the error back to the CS + // it calls this same function if the error is in this function + // and creates a loop + LOG_DEBUG(toText(error) + " " + toInfo(error, args)); return ok; }