-
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
Add -v flag to optionally increase Gecko verbosity #103
Conversation
Introduces a cumulative -v flag where a single instance mean INFO level and above are shown and two mean TRACE. The log levels are defined in Log.jsm in the Gecko toolkit. MarionetteSettings gains a new `verbosity' property that if undefined uses the defaults in Gecko. This means we are no longer requiring the marionette.logging preference to be set. The defaults in Gecko are INFO for optimised builds and DEBUG for debug builds. Fixes #89.
Reviewed 2 of 2 files at r1. src/main.rs, line 113 [r1] (raw file):
Maybe rewrite as
src/marionette.rs, line 270 [r1] (raw file):
Why not call this src/marionette.rs, line 279 [r1] (raw file):
Also Comments from Reviewable |
Review status: all files reviewed at latest revision, 4 unresolved discussions, some commit checks failed. src/main.rs, line 82 [r1] (raw file):
This needs a corresponding long form. Comments from Reviewable |
Review status: 0 of 2 files reviewed at latest revision, 4 unresolved discussions. src/main.rs, line 82 [r1] (raw file):
|
Review status: 0 of 2 files reviewed at latest revision, 4 unresolved discussions, some commit checks failed. src/main.rs, line 49 [r2] (raw file):
Why 64? src/main.rs, line 137 [r2] (raw file):
Don't use Comments from Reviewable |
Reviewed 2 of 2 files at r2. Comments from Reviewable |
Review status: all files reviewed at latest revision, 4 unresolved discussions, some commit checks failed. src/main.rs, line 49 [r2] (raw file):
|
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. src/main.rs, line 49 [r2] (raw file):
|
Review status: 1 of 2 files reviewed at latest revision, 1 unresolved discussion. src/main.rs, line 137 [r2] (raw file):
|
Fixed the tests. |
Reviewed 1 of 1 files at r4. Comments from Reviewable |
This does not appear to be working, using the latest Geckodriver as of today, 9/18/17
Tried this:
I still get all kinds of DEBUG logs can you provide a commandline example of how to use this -v flag for geckodriver, plz ? NOTE: The above shell script can be used for a temporary work-around until the '--log fatal' and '-v' options are fixed. Just set the following (on linux):
NOTE: The above script turns off logging or at least redirects it to null. |
@timrsfo That is a bug in Firefox, see https://bugzilla.mozilla.org/show_bug.cgi?id=1384956. |
@andreastt thanks for the feedback. I came here searching for an answer for too much log output from, geckodriver with webdriver 3.5+. I hope the fix includes a way to pass geckodriver args such as -v, and --log fatal to geckodriver from webdriver. this is off topic though so I will drop off. |
@timrsfo please note that issue #955 is what you want, which covers the geckodriver part beside the bug @andreastt mentioned above. |
Introduces a cumulative -v flag where a single instance mean INFO level
and above are shown and two mean TRACE. The log levels are defined in
Log.jsm in the Gecko toolkit.
MarionetteSettings gains a new `verbosity' property that if undefined
uses the defaults in Gecko. This means we are no longer requiring the
marionette.logging preference to be set.
The defaults in Gecko are INFO for optimised builds and DEBUG for
debug builds.
Fixes #89.
This change is