OpenSimulationInterface / osi-validation

Tools around the OSI used to verify the content of messages and more.
Other
10 stars 8 forks source link

Fix logging to correctly differentiate between error and warning analog to test results #53

Open ClemensLinnhoff opened 10 months ago

ClemensLinnhoff commented 10 months ago

Describe the bug

In the terminal window it says, that there are 40 warnings. But in the output_logs folder, there is an empty warn file and the 40 warnings are actually marked as errors in the error file.

Describe how to reproduce the bug

Run the example and check the output_logs folder

Describe the expected behavior

I would expect warnings to appear in the warn file and only errors to appear in the error file.

Describe the OS you are using

ClemensLinnhoff commented 5 months ago

While we fix this, let's add some more logger entries, e.g. if the message type is not set and the default SensorView is used. See https://github.com/OpenSimulationInterface/osi-validation/pull/73#discussion_r1616708837.