Skip to content
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

Added function to show info about launched Chrome br… #483

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

0xil0rphan
Copy link

…owser.

This info is exceptionally useful when debugging so that users can easily see how their Chrome instance is set up, what version is in use, where it is saving data to disk, among other things.

Example Output that appears in terminal:

...
2021-02-02 20:58:17|0.6.0.dev3|WARNING|FairGame PRE-RELEASE v0.6.0.dev3
2021-02-02 20:58:17|0.6.0.dev3|INFO|Initializing Global configuration...
2021-02-02 20:58:17|0.6.0.dev3|INFO|No Apprise config found at config/apprise.conf.
2021-02-02 20:58:17|0.6.0.dev3|INFO|For notifications, see config/apprise.conf_template
2021-02-02 20:58:17|0.6.0.dev3|INFO|Initializing Amazon configuration...
2021-02-02 20:58:17|0.6.0.dev3|INFO|Reading credentials from: config/amazon_credentials.json
Credential file password: ****************
2021-02-02 20:58:24|0.6.0.dev3|INFO|Google Chrome Version:	87.0.4280.67 (Official Build) (x86_64)
2021-02-02 20:58:24|0.6.0.dev3|INFO|Revision:			0e5d92df40086cf0050c00f87b11da1b14580930-refs/branch-heads/4280@{#1441}
2021-02-02 20:58:24|0.6.0.dev3|INFO|OS:				macOS Version 10.14.6 (Build 18G103)
2021-02-02 20:58:24|0.6.0.dev3|INFO|JS Engine:			V8 8.7.220.25
2021-02-02 20:58:24|0.6.0.dev3|INFO|Flash Version:		24.0.0.189 internal-not-yet-present
2021-02-02 20:58:24|0.6.0.dev3|INFO|User Agent:			Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36
2021-02-02 20:58:24|0.6.0.dev3|INFO|Process Command:		/Applications/Google Chrome.app/Contents/MacOS/Google Chrome --disable-background-networking --disable-client-side-phishing-detection --disable-default-apps --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-session-crashed-bubble --disable-sync --enable-blink-features=ShadowDOMV0 --log-level=0 --no-first-run --no-service-autorun --password-store=basic --remote-debugging-port=0 --test-type=webdriver --use-mock-keychain --user-data-dir=/Users/hf/Documents/GitHub/fairgame/.profile-amz --flag-switches-begin --flag-switches-end
2021-02-02 20:58:25|0.6.0.dev3|INFO|Executable Path:		/Applications/Google Chrome.app/Contents/MacOS/Google Chrome
2021-02-02 20:58:25|0.6.0.dev3|INFO|Profile Path:		/Users/0xil0rphan/Documents/GitHub/fairgame/.profile-amz/Default
2021-02-02 20:58:25|0.6.0.dev3|INFO|==================================================
2021-02-02 20:58:25|0.6.0.dev3|INFO|Starting Amazon ASIN Hunt on https://smile.amazon.com/ for 1 Products with:
2021-02-02 20:58:25|0.6.0.dev3|INFO|--Delay of 3.0 seconds
...

0xil0rphan and others added 2 commits February 2, 2021 21:02
…owser.

This info is exceptionally useful when debugging so that users can easily see how their Chrome instance is set up, what version is in use, where it is saving data to disk, among other things.
@DakkJaniels
Copy link
Collaborator

Fixed the formatting for you. Probably should have a flag for this, or at least something that won't run it all the time (maybe check if dev in version before running?). Thoughts @unapproachable ?

@unapproachable
Copy link
Collaborator

@0xil0rphan Can this be updated to execute/show only on LOGLEVEL= DEBUG? Maybe only print it when in DEBUG mode because I fear this will cause more consternation than it addresses with the user population. And, while I'm feature creeping, I'd love it to also include the ChromeDriver information!

@0xil0rphan
Copy link
Author

@0xil0rphan Can this be updated to execute/show only on LOGLEVEL= DEBUG? Maybe only print it when in DEBUG mode because I fear this will cause more consternation than it addresses with the user population. And, while I'm feature creeping, I'd love it to also include the ChromeDriver information!

Yes, I can look into doing that. I will also see how to print the chromedriver info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants