From 54e4f024f638dd09401fb14ff46eeb68b57b1ea8 Mon Sep 17 00:00:00 2001 From: Mark Dewing Date: Tue, 19 Dec 2017 08:45:03 -0600 Subject: [PATCH] Sent output of ReportEngine to debug stream Except for any error output, the default output stream for the ReportEngine is now the debug stream. --- src/Utilities/ProgressReportEngine.cpp | 6 +++--- src/Utilities/ProgressReportEngine.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Utilities/ProgressReportEngine.cpp b/src/Utilities/ProgressReportEngine.cpp index 26c2629df..b62ad7028 100644 --- a/src/Utilities/ProgressReportEngine.cpp +++ b/src/Utilities/ProgressReportEngine.cpp @@ -24,16 +24,16 @@ void ReportEngine::echo(xmlNodePtr cur, bool recursive) { if(cur==NULL) return; - app_log()<< "name) << "\""; + app_debug()<< "name) << "\""; xmlAttrPtr att = cur->properties; char atext[1024]; while(att != NULL) { sprintf(atext," %s=\"%s\"",(const char*)(att->name),(const char*)(att->children->content)); - app_log() << atext; + app_debug() << atext; att = att->next; } - app_log() << "/>\n"; + app_debug() << "/>\n"; } bool ReportEngine::DoOutput = false; diff --git a/src/Utilities/ProgressReportEngine.h b/src/Utilities/ProgressReportEngine.h index fc11e8ec9..c6eca5304 100644 --- a/src/Utilities/ProgressReportEngine.h +++ b/src/Utilities/ProgressReportEngine.h @@ -37,7 +37,7 @@ class ReportEngine public: inline ReportEngine(const std::string& cname, const std::string& fname, int atype=1): - ReportType(atype),ClassName(cname), LogBuffer(infoLog), FuncName(fname) + ReportType(atype),ClassName(cname), LogBuffer(infoDebug), FuncName(fname) { if (DoOutput) { LogBuffer << " " << ClassName << "::" << FuncName << "\n"; @@ -75,7 +75,7 @@ public: inline void error(const std::string& msg, bool fatal=false) { - LogBuffer << ("ERROR: "+msg+"\n"); + app_error() << ("ERROR: "+msg+"\n"); if(fatal) APP_ABORT(ClassName+"::"+FuncName); } @@ -103,7 +103,7 @@ private: */ InfoStream& LogBuffer; //disable copy constructor - ReportEngine(const ReportEngine& a):LogBuffer(infoLog) {} + ReportEngine(const ReportEngine& a):LogBuffer(infoDebug) {} static bool DoOutput; @@ -114,7 +114,7 @@ template inline ReportEngine& operator<<(ReportEngine& o, const T& val) { - app_log()<< val; + app_debug() << val; return o; } }