Fix logfile for wfserver

half-duplex
Phil Taylor 2023-01-12 19:47:55 +00:00
rodzic b45bf9ce41
commit c0a70ae0b7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -138,9 +138,9 @@ int main(int argc, char *argv[])
#ifdef BUILD_WFSERVER
// Set the logging file before doing anything else.
logFile.reset(new QFile(logFilename));
m_logFile.reset(new QFile(logFilename));
// Open the file logging
logFile.data()->open(QFile::WriteOnly | QFile::Truncate | QFile::Text);
m_logFile.data()->open(QFile::WriteOnly | QFile::Truncate | QFile::Text);
// Set handler
qInstallMessageHandler(messageHandler);