QML UI: provide information why logfile couldn't be written

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-06-28 04:44:50 -07:00
parent b492df6ffc
commit 1161782f3b

View file

@ -164,7 +164,8 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false),
if (!appLogFile.open(QIODevice::ReadWrite|QIODevice::Truncate)) {
appLogFileOpen = false;
appendTextToLog("Failed to open logfile " + appLogFileName
+ " at " + QDateTime::currentDateTime().toString());
+ " at " + QDateTime::currentDateTime().toString()
+ " error: " + appLogFile.errorString());
} else {
appLogFileOpen = true;
appendTextToLog("Successfully opened logfile " + appLogFileName