From 8ef9ec9b9fb5cd073979bc2c88529781a1fba243 Mon Sep 17 00:00:00 2001 From: Louis-Claude Canon Date: Tue, 26 Jun 2012 09:33:51 +0200 Subject: [PATCH] Code Cleanup - Redundant debug message. - More consistent check for messages aggregation. --- src/Context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Context.cpp b/src/Context.cpp index 6a0c07fcf..921416ec4 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -103,7 +103,6 @@ int Context::initialize (int argc, const char** argv) if (override) { rc_file = File (override); - debug ("TASKRC override: "); header (format (STRING_CONTEXT_RC_OVERRIDE, rc_file._data)); } @@ -731,7 +730,8 @@ void Context::error (const std::string& input) //////////////////////////////////////////////////////////////////////////////// void Context::debug (const std::string& input) { - debugMessages.push_back (input); + if (input.length ()) + debugMessages.push_back (input); } ////////////////////////////////////////////////////////////////////////////////