Skip to content

Commit

Permalink
Silence the debug logs in ErrorFile, it's annoying.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed Nov 15, 2023
1 parent e13c0f6 commit 87db4fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/energyplus/ErrorFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -102,7 +102,7 @@ namespace energyplus {
}
}

LOG(Trace, "Error parsed: " << warningOrErrorString);
// LOG(Trace, "Error parsed: " << warningOrErrorString);

// correctly sort warnings and errors
try {
Expand All @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion src/workflow/RunEnergyPlus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 87db4fb

Please sign in to comment.