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

Add a debugging flag #248

Merged
merged 9 commits into from
Jul 16, 2019
Merged

Conversation

areese
Copy link
Contributor

@areese areese commented Jul 8, 2019

If --debug is used or if DATABRICKS_DEBUGGING is set in the environment the entire contents of the http requests will be printed to stdout.

Depends on #244

@codecov-io
Copy link

codecov-io commented Jul 8, 2019

Codecov Report

Merging #248 into master will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #248      +/-   ##
==========================================
+ Coverage   82.87%   82.95%   +0.07%     
==========================================
  Files          31       31              
  Lines        2038     2047       +9     
==========================================
+ Hits         1689     1698       +9     
  Misses        349      349
Impacted Files Coverage Δ
databricks_cli/click_types.py 94.2% <100%> (+0.86%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a54a7bf...ba77943. Read the comment docs.

    Add a --stdin option to configure, so that the password will always be read from stdin instead of stored in a file.
    If --debug is used or if DATABRICKS_DEBUGGING is set in the environment the entire contents of the http requests will be printed to stdout.
Move all debug logic into ContextObject.set_debug which is called when --debug is sent to any command
@areese
Copy link
Contributor Author

areese commented Jul 11, 2019

@andrewmchen Updated, using the --debug flag and ContextObject made the code a lot cleaner.

@andrewmchen andrewmchen merged commit f4ab076 into databricks:master Jul 16, 2019
@areese areese deleted the oss_patch_add_debug_flag branch July 16, 2019 16:50
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