-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Some log messages leak even if the log level is "fatal" #619
Comments
Thanks for the bug report, but unfortunately the log verbosity option in geckodriver only controls the Log.jsm and the Rust verbosity. The “pipe error”, “ProtocolHandshake createSession”, and “JavaScript error” output that you see in your log is outside of our control. |
Why can't geckodriver handle "pipe error" and "JavaScript error"? They came from the browser, why can't they be wrapped (and then suppressed) by geckodriver? |
Because they’re not using Log.jsm, and whatever isn’t using Log.jsm is outside of our control. The log verbosity setting only controls the |
Put into other words: This is output you’d see from Firefox normally, even when not run through geckodriver. |
I just wonder if the binary used to produce this trace log was a debug build? |
Firefox Nightly and the released version of geckodriver 0.15 for windows. |
So what we do in GeckoDriver is to set Line 23 in 2e0054b
Can you please check how it behaves when you turn it off? This preference actually controls everything which gets dumped to the console by the browser itself. Maybe we should couple it with the log settings, and only turn it on if logging is enabled and set to at least debug level. |
@andreastt I would recommend that we re-open this issue. Sadly I cannot do it myself. |
For example, I still see this which originates from C++ code:
But setting
|
Even if it only controls the output dump() in JS code, we could reduce the clutter in the log, and only enable it if at least |
Sure. I’ve always found them useful, but I guess it would be more structured to access them by implementing a log retrieval API in the future. In the meantime, users who are interested in these log messages can pass |
I assume you meant |
I mean that when |
Ok, so I will provide a PR for that then. |
So I tried to reproduce this behavior with the Selenium Python bindings but I actually cannot see any javascript errors in the log output. It doesn't matter which level I have defined. @barancev, which binding are you using? Would you mind testing with my Python test script? |
As far as I know Python test frameworks suppress stdout of spawned processes. I use Java binding. At the moment I see less internal browser error messages than in the original post, but the log is not empty (in today Nightly):
|
The debug-level output you see from the Marionette component there is due to https://bugzilla.mozilla.org/show_bug.cgi?id=1384956. |
Did https://bugzilla.mozilla.org/show_bug.cgi?id=1384956 not address the issue? |
That bug was only about the wrong logging in Marionette, but this did not address the issue with the included Firefox logs. |
Firefox Version
55.0a1 (2017-04-06) (64-bit)
geckodriver 0.15
Platform
Windows 7
Steps to reproduce
Most log messages are suppressed, but not all:
The text was updated successfully, but these errors were encountered: