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 logging #43

Merged
merged 5 commits into from
Feb 15, 2021
Merged

Add logging #43

merged 5 commits into from
Feb 15, 2021

Conversation

RobinL
Copy link
Member

@RobinL RobinL commented Feb 12, 2021

Should help us solve #41, and I think is generally useful for any future debugging.

Use in Jupyter Lab like:

import logging 
logging.basicConfig()  
logging.getLogger("pydbtools").setLevel(logging.DEBUG)

You get out a log like (i've replaced some of the strings with REDACTED)

DEBUG:pydbtools.wrangler:Modifying function create_temp_table
DEBUG:pydbtools.wrangler:
{'boto3_session': Session(region_name='eu-west-1'),
 'sql': 'REDACTED',
 'table_name': 'pc_with_REDACTED'}

@RobinL RobinL changed the title WIP add logging Add logging Feb 12, 2021
@RobinL RobinL requested a review from isichei February 12, 2021 15:57
@RobinL RobinL changed the title Add logging (WIP) Add logging. Don't merge Feb 15, 2021
@RobinL
Copy link
Member Author

RobinL commented Feb 15, 2021

I think I misunderstood how pprint works - just a sec while I fix

@RobinL RobinL changed the title (WIP) Add logging. Don't merge Add logging Feb 15, 2021
@RobinL RobinL merged commit b261357 into master Feb 15, 2021
@Thomas-Hirsch Thomas-Hirsch deleted the logging branch April 27, 2023 13:20
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.

2 participants