Fix logfile option in servatrice.ini

servatrice was using hardcocded filename “server.log” even if a custom
value was specified
This commit is contained in:
Fabio Bas 2014-10-02 23:00:17 +02:00
parent 8b32e51cab
commit 4b38187d20
2 changed files with 2 additions and 2 deletions

View file

@ -173,7 +173,7 @@ int main(int argc, char *argv[])
logger->moveToThread(loggerThread);
loggerThread->start();
QMetaObject::invokeMethod(logger, "startLog", Qt::BlockingQueuedConnection, Q_ARG(QString, settingsCache->value("server/logfile").toString()));
QMetaObject::invokeMethod(logger, "startLog", Qt::BlockingQueuedConnection, Q_ARG(QString, settingsCache->value("server/logfile", QString("server.log")).toString()));
#if QT_VERSION < 0x050000
if (logToConsole)