Skip to content

Don't propagate loggers; add some logging.#291

Merged
Atheros1 merged 2 commits intoBitmessage:masterfrom
fiatflux:no_propagate_loggers
Jul 13, 2013
Merged

Don't propagate loggers; add some logging.#291
Atheros1 merged 2 commits intoBitmessage:masterfrom
fiatflux:no_propagate_loggers

Conversation

@fiatflux
Copy link
Copy Markdown
Contributor

I disabled logger propagation to prevent the root logger from duplicating the custom loggers. In the future there might be something we want to do with the root logger, but I think this is the best way for now to avoid double messages.

Comment thread src/shared.py
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@XJ9: What makes IOError an exception we should catch?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fiatflux Python throws IOError if there is no old config directory.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, of course. Thanks. Later today I'll add a comment to that effect or switch away from the use of exceptions for this case.

Atheros1 pushed a commit that referenced this pull request Jul 13, 2013
Don't propagate loggers; add some logging.
@Atheros1 Atheros1 merged commit 640a4c6 into Bitmessage:master Jul 13, 2013
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.

3 participants