NREL / OpenStudio

OpenStudio is a cross-platform collection of software tools to support whole building energy modeling using EnergyPlus and advanced daylight analysis using Radiance.
https://www.openstudio.net/
Other
494 stars 188 forks source link

Fix #5037 - Adjust log formatters for workflow (stdout + run.log) #5042

Closed jmarrec closed 9 months ago

jmarrec commented 9 months ago

Pull request overview

Pull Request Author

Labels:

Review Checklist

This will not be exhaustively relevant to every PR.

jmarrec commented 9 months ago

Example:

$ $os_build2/Products/openstudio run --postprocess_only -w reportingmeasure.osw
[openstudio.measure.OSRunner] <Error> runner.registerError called
[openstudio.workflow.OSWorkflow] <Error> Found error in state 'ReportingMeasures' with message: 'Measure 'ReportingMeasureRegistersError' reported an error with [runner.registerError called]'
Failed to run workflow. Last Error:
  Found error in state 'ReportingMeasures' with message: 'Measure 'ReportingMeasureRegistersError' reported an error with [runner.registerError called]'

$ cat run/run.log
[18:38:06.159800 WARN] [openstudio.EpwFile] Header start day of the week and actual start day of the week do not match in EPW file '/Users/julien/Software/Others/OS-build2/resources/Examples/compact_osw/files/srrl_2013_amy.epw'. Data will be treated as typical (TMY)
[18:38:06.936419 ERROR] [openstudio.measure.OSRunner] runner.registerError called
[18:38:06.936646 ERROR] [openstudio.workflow.OSWorkflow] Found error in state 'ReportingMeasures' with message: 'Measure 'ReportingMeasureRegistersError' reported an error with [runner.registerError called]'
ci-commercialbuildings commented 9 months ago

CI Results for d7a232f3049172f63f2ae42c0f756562815d55ea: