robotframework: BuiltIn Keyword 'Run Process' does not respect the globally set loglevel.

I’m trying to have as clean HTML log as possible so anyone can understand what is going on during my test execution by reading the log. I’m executing a lot of commands from robot via the builtin Run Process keyword. The issue is that this keyword is very talkative - at least to my standards, hence it fills up my HTML log with a lot of messages like these:

Starting process: XYZ
Waiting for process to complete.
Process completed.

I have tried to suppress this by issuing the “Set Log Level NONE” keyword before calling Run Process, but after checking the code of Process.py I realised that logging inside this class is directly tied to loglevels (see: https://github.com/robotframework/robotframework/blob/master/src/robot/libraries/Process.py#L418C23-L418C23).

I have seen other builtin classes where the globally set loglevel is respected by using logger.log(level, msg) instead of logger.info(msg). I’d really welcome this in Process.py as well.

About this issue

  • Original URL
  • State: closed
  • Created 8 months ago
  • Comments: 19 (12 by maintainers)

Most upvoted comments

Thanks I have submitted the feature request: https://github.com/robotframework/robotframework/issues/4929 Sorry for my late reply, and many thanks for your assistance!