NatLabRockies / NatLabRockies/OpenStudio

Measure runner.registerInfo output only shows up with --verbose flag

Open
#5,069 8 comments 0 reactions 1 assignee View on GitHub

@jmarrec is already working on this.

Since Jan 23, 2024.

component - logs and warnings severity - Major Bug
Dominant language
C++
Stars
646
Forks
237
Avg merge
3d 11h
Merged PRs (30d)
10

Description

Issue overview

When running a measure with the new CLI, runner.registerWarn messages will show up in the output with --show-stdout but runner.registerInfo messages will not. When using the classic CLI, runner.registerInfo messages do show up in the output without the --verbose flag.

Current Behavior

Info messages from the measures do not show up in the stdout output.

Expected Behavior

Info messages from the measures shouldshow up in the stdout output.

Steps to Reproduce

  1. Create a measure with runner.registerInfo statements
  2. Add measure to a workflow
  3. Run the workflow with openstudio run --show-stdout --style-stdout -w c:\test\untitled\workflow.osw
  4. Verify that info statements are not present
  5. Run the workflow with openstudio --verbose run --show-stdout --style-stdout -w c:\test\untitled\workflow.osw
  6. Verify that info statements are present
Environment

Some additional details about your environment for this issue (if relevant):

  • Platform (Operating system, version): Windows 11
  • Version of OpenStudio (if using an intermediate build, include SHA): 3.7.0
Context

Info messages are important for users, these messages should be present without needing the --verbose flag

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.