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

Fix logging (do not touch root logger) #44

Merged
merged 1 commit into from
Dec 13, 2015

Conversation

b4stien
Copy link
Contributor

@b4stien b4stien commented Dec 13, 2015

The call to logging.basicConfig set the root logger, which is problematic for a library: when importing from another place - typically an application - I don't want one of the dependencies/libraries to mess with my root logger.

The proposed fix does exactly the same thing (setting logging level and formatter), except it only does so for the pdfrw logger.

pmaupin added a commit that referenced this pull request Dec 13, 2015
Fix logging (do not touch root logger)
@pmaupin pmaupin merged commit 7c0f427 into pmaupin:master Dec 13, 2015
@pmaupin
Copy link
Owner

pmaupin commented Dec 13, 2015

Thanks!

The pdfrw library grew out of a personal program, so there may still be a few more warts like this hiding in there.

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

2 participants