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

@ -26,7 +26,7 @@ ServerLogger::~ServerLogger()
void ServerLogger::startLog(const QString &logFileName)
{
if (!logFileName.isEmpty()) {
logFile = new QFile("server.log", this);
logFile = new QFile(logFileName, this);
logFile->open(QIODevice::Append);
#ifdef Q_OS_UNIX
::socketpair(AF_UNIX, SOCK_STREAM, 0, sigHupFD);