-
Notifications
You must be signed in to change notification settings - Fork 2.4k
output.xml should honour the current log level and avoid messages which are below log level #5057
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This will also helps in reducing the output.xml file size for cases where keywords are using loops. Currently they generate all log messages in output.xml. These type of keywords can be set to log level NONE so that they do not generate large number of log messages while looping through and if required for debug etc. log level can be set accordingly to generate them if required. |
Do you mean that if you use Alternatively, do you mean that if you have that |
I think the issue is when I use robot:flatten tag on the keyword it logs at INFO level even if I have set the log level to NONE, I can see log messages in output.xml and also in normal log.html file |
Here is the sample test.robo which should reproduce the issue
|
Have you verified this issue occurs also with RF 7.0? See #4921. |
I have not tried on RF 7.0 as we using 6.1.1 only currently. Are there any plans to back port fix? What is the LTS version for RF? |
We don't have resources to backport fixes or to have LTS versions. I hope you can test with RF 7.0 so that we know is the issue resolved or not. |
I expect this to be a duplicate of #4921. |
Version: Robot Framework 6.1.1 (Python 3.11.4 on win32)
Currently if the logging level is set to NONE, output.xml file still contains messages which should be logged only if log level is set to INFO or higher. The log.html do not show those messages however output.xml file still contains all log messages. This is a big problem as lot of libraries are writing logs at INFO level where they are output sensitive details like Baic Auth headers and database connections etc. There is currently no way to stop them from appearing in output.xml file. I know that by using --removekeywords and --flattenkeywords command line we can remove them post execution using rebot.exe command however this is still a security concern as after the rebot.exe actual output.xml file is still present where log of sensitive information can be parsed and exploited.
Better approach would be to honor the log level when generating output.xml file and only output messages which are at or above the current log level - if set to NONE no log messages should be present in output.xml
The text was updated successfully, but these errors were encountered: