Skip to content

Commit

Permalink
LogBuffer: Debug builds print metadata for each entry
Browse files Browse the repository at this point in the history
In a release build, just print the log entry text.
  • Loading branch information
skyjake committed Mar 28, 2012
1 parent 2a40aa9 commit b2e42f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/libdeng2/src/core/logbuffer.cpp
Expand Up @@ -162,7 +162,7 @@ void LogBuffer::flush()
}
*/

#ifndef _DEBUG
#ifdef _DEBUG
const duint MAX_LENGTH = 109;
const duint SIMPLE_INDENT = 30;
#else
Expand All @@ -177,7 +177,7 @@ void LogBuffer::flush()
QList<QTextStream*> os;
os << ((*i)->level() >= Log::ERROR? errs.data() : outs.data()) << fs.data();

#ifndef _DEBUG
#ifdef _DEBUG
String message = (*i)->asText();
#else
// In a release build we can dispense with the metadata.
Expand Down

0 comments on commit b2e42f5

Please sign in to comment.