enthought / enthought/traits

Standard traits exception handler `_log_exception` should not blindly create handler

Open
#265 10 comments 0 reactions 0 assignees View on GitHub
type: bug type: discussion
Dominant language
Python
Stars
462
Forks
90
PR merge metrics
No merged PRs in 30d

Description

I'm referring to the method `_log_exception` of the class `traits.trait_notifiers.NotificationExceptionHandler`, which will add `logging.StreamHandler` to the list of the handlers managed by the `logging` library. This makes it difficult for users of `traits` to keep stdout/stderr free from exception messages. Instead, it should either just not add a logging handler, or at least check if any other handler is registered.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.