Mercurial > hg > easyhg
changeset 167:94be1e218655
* Overwrite log file for each run (saving space at expense of long record)
author | Chris Cannam |
---|---|
date | Wed, 08 Dec 2010 16:57:18 +0000 |
parents | 0dfd6567ec0c |
children | 4bad3c5c053a |
files | debug.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/debug.cpp Sun Dec 05 19:24:42 2010 +0000 +++ b/debug.cpp Wed Dec 08 16:57:18 2010 +0000 @@ -40,7 +40,7 @@ prefix = new char[20]; sprintf(prefix, "[%lu]", (unsigned long)QCoreApplication::applicationPid()); logFile = new QFile(QDir::homePath() + "/.easyhg.log"); - if (logFile->open(QIODevice::WriteOnly | QIODevice::Append)) { + if (logFile->open(QIODevice::WriteOnly)) { QDebug(QtDebugMsg) << (const char *)prefix << "Opened debug log file " << logFile->fileName();