forked from neo4j/neo4j-python-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve logging helper
neo4j.debug.watch()
The helper did not handle logging level correctly. For example ``` neo4j.debug.watch("neo4j", out=sys.stdout) neo4j.debug.watch("neo4j", out=sys.stderr, level=logging.WARNING) ``` would've caused the logging level of the "neo4j" logger to end up being `WARNING` even though the first call (implicitly) requested `DEBUG`. The fix will make sure to set the logger's level to the most verbose requested level and use a level filter on the Handlers registered for each call to filter on the level accordingly. Backport of neo4j#946
- Loading branch information
1 parent
307349e
commit f94217c
Showing
2 changed files
with
96 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters