You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This problems was initially reported as part of #4919. It can be reproduced, for example, with this keyword:
*** Keywords ***Flatten with levels[Tags] robot:flatten
Log INFO 1 INFO
Log DEBUG 1 DEBUG
${old} = Set Log Level DEBUG
Log INFO 2 INFO
Log DEBUG 2 DEBUG
When the above keyword is run, it produces the following messages:
15:04:58.453 INFO INFO 1
15:04:58.453 DEBUG DEBUG 1
15:04:58.453 INFO Log level changed from TRACE to DEBUG.
15:04:58.453 INFO ${old} = TRACE
15:04:58.453 INFO INFO 2
15:04:58.453 DEBUG DEBUG 2
This is obviously wrong. The first debug message shouldn't be there and the message about the level change should show "from INFO to DEBUG".
The text was updated successfully, but these errors were encountered:
The root cause is that we use a different XML logger when flattening than normally, and that logger has its log level set to TRACE regardless what is set from the command line. Initializing the flat logger correctly wouldn't be hard, but then we needed to add extra logic for keeping the loggers in sync in case Set Log Level is used. A much simpler alternative is changing flattening so that we have just one XML logger and that handles flattening itself. A big benefit of this approach is that it simplifies the code considerably.
This problems was initially reported as part of #4919. It can be reproduced, for example, with this keyword:
When the above keyword is run, it produces the following messages:
This is obviously wrong. The first debug message shouldn't be there and the message about the level change should show "from INFO to DEBUG".
The text was updated successfully, but these errors were encountered: