-
Notifications
You must be signed in to change notification settings - Fork 765
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
Set log source default level to TRACE. #1244
Conversation
@aaltat / @pekkaklarck The tests in this PR are failing (here), but the failures seem unrelated to the PR.. maybe the tests need to be updated? |
SeleniumLibrary uses also https://github.com/robotframework/statuschecker/ to verify log messages and keyword status from the output.xml. Also some test may initially fail, but are marked as passed with the status checker and vice versa. Based on the Travis it looks like a some of log check fails. Run the tests with the acceptance test runner: |
Noticed few bugs in the https://github.com/robotframework/SeleniumLibrary/blob/master/atest/README.rst but now it should be fixed. |
Trying to verify that the DOM is not added to the log at Can you think of another way I can check that the DOM is not logged in that step? The other way I can think is to simply remove the check, but I'd rather check that is not there than not check at all. |
There is suggestion, in the robotframework/statuschecker#4 how to overcome the problem. Would you need more help? |
Need some help. The new test cases are passing, except this one ( Even if I just do Any idea what's going on? |
Without looking anything, my guess is that tests are run using the debug level and thus trace messages are ignored. You can use |
Yes, that was it tx! I wonder if it's b/c it's running on Jython in the test case Create Webdriver Creates Functioning WebDriver, which should pass and doesn't seem related to my changes. |
Jython fails randomly in Travis, it is annoying but I have not been able to reproduce the problem locally. I did re-trigger the Jython run and lets see how it goes. |
All is green now, thanks! Hope this gets merged for the next SeleniumLibrary release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you changed all the keywords log level. At least the Log Source
log level should not have been changed. Also I did not prepare this big change and I will think it over.
Setting `log_source(...)` back to 'INFO'.
@aaltat made the fix you requested and now the Jython test is failing again.. can you kick it off again?
Note that it's the same change everywhere and works as discussed in issue #1199 Sure hope this makes it.. the amount of unnecessary logging at |
I think this is good to go. I need to create new issue, to that it matches to the scope of the PR. |
Addresses issue #1199
Having the whole DOM in these keywords at the INFO level is too much clutter and causes the size of the logs to increase dramatically.