kopia lustrzana https://gitlab.com/eliggett/wfview
Truncate wfview.log on open
rodzic
b6cf0fcfc4
commit
4ce6500271
2
main.cpp
2
main.cpp
|
@ -113,7 +113,7 @@ int main(int argc, char *argv[])
|
|||
// Set the logging file before doing anything else.
|
||||
m_logFile.reset(new QFile(logFilename));
|
||||
// Open the file logging
|
||||
m_logFile.data()->open(QFile::Append | QFile::Text);
|
||||
m_logFile.data()->open(QFile::WriteOnly | QFile::Truncate | QFile::Text);
|
||||
// Set handler
|
||||
qInstallMessageHandler(messageHandler);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue