First time here? Check our help page!
1

supress warning output cli

I am using the python bindings of openstudio and i am getting this output:

[openstudio.EpwFile] <0> Successive data points (1984-Feb-28 to 1992-Mar-01, ending on line 1425) are greater than 1 day apart in EPW file './code/energy/Berlin.epw'. Data will be treated as typical (TMY)
[openstudio.model.YearDescription] <1> 'UseWeatherFile' is selected in YearDescription, but there are no weather file set for the model.
[openstudio.model.YearDescription] <1> 'UseWeatherFile' is selected in YearDescription, but there are no weather file set for the model.

Is there any way to suppress this output? Thank You

Sinasta's avatar
11
Sinasta
asked 2023-02-27 11:01:38 -0500
Aaron Boranian's avatar
14.1k
Aaron Boranian
updated 2023-02-27 14:13:53 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

You can set the logging level like so:

openstudio.Logger.instance().standardOutLogger().setLogLevel(openstudio.Fatal)

Choices are Warn, Error, or Fatal.

shorowit's avatar
11.8k
shorowit
answered 2023-02-27 16:35:08 -0500
edit flag offensive 0 remove flag delete link

Comments

1

For completeness: Trace, Debug, Info, Warn, Error, or Fatal. You can also disable the logger completely openstudio.Logger.instance().standardOutLogger().disable()

Julien Marrec's avatar Julien Marrec (2023-03-06 06:34:10 -0500) edit
add a comment see more comments