From 87db4fb768f0dca378943a372b369c8c85a32670 Mon Sep 17 00:00:00 2001 From: Julien Marrec Date: Wed, 15 Nov 2023 15:15:40 +0100 Subject: [PATCH] Silence the debug logs in ErrorFile, it's annoying. --- src/energyplus/ErrorFile.cpp | 6 +++--- src/workflow/RunEnergyPlus.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/energyplus/ErrorFile.cpp b/src/energyplus/ErrorFile.cpp index bbc9d19f442..da5079b33e3 100644 --- a/src/energyplus/ErrorFile.cpp +++ b/src/energyplus/ErrorFile.cpp @@ -72,7 +72,7 @@ namespace energyplus { alreadyGotLine = false; boost::smatch matches; - LOG(Debug, "Parsing ErrorFile Line '" << line << "'"); + // LOG(Trace, "Parsing ErrorFile Line '" << line << "'"); // parse the file if (boost::regex_search(line, matches, warningOrError)) { @@ -102,7 +102,7 @@ namespace energyplus { } } - LOG(Trace, "Error parsed: " << warningOrErrorString); + // LOG(Trace, "Error parsed: " << warningOrErrorString); // correctly sort warnings and errors try { @@ -121,7 +121,7 @@ namespace energyplus { } } catch (...) { - LOG(Error, "Unknown warning or error level '" << warningOrErrorType << "'"); + LOG(Error, "Unknown warning or error level '" << warningOrErrorType << "' for line '" << line << "'"); } } else if (boost::regex_match(line, completedSuccessful) || boost::regex_match(line, groundTempCompletedSuccessful)) { diff --git a/src/workflow/RunEnergyPlus.cpp b/src/workflow/RunEnergyPlus.cpp index fcdf67c2f73..4239214d488 100644 --- a/src/workflow/RunEnergyPlus.cpp +++ b/src/workflow/RunEnergyPlus.cpp @@ -224,7 +224,7 @@ void OSWorkflow::runEnergyPlus() { detailedTimeBlock("Running EnergyPlus", [&cmd, &result] { result = std::system(cmd.c_str()); }); } - LOG(Info, "EnergyPlus returned " << result << "'"); + LOG(Info, "EnergyPlus returned '" << result << "'"); if (result != 0) { LOG(Warn, "EnergyPlus returned a non-zero exit code (" << result << "). Check the stdout-energyplus log"); }