Skip to content

Commit aa54102

Browse files
derek73claude
andcommitted
Don't setLevel on the library logger
Fixes #228. Libraries should attach a NullHandler and leave the level at NOTSET so applications control verbosity; setLevel(ERROR) here silently discarded log records regardless of the app's root logger configuration. __main__.py already configures its own logger for CLI use and is unaffected. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 9514ba3 commit aa54102

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

nameparser/util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# http://code.google.com/p/python-nameparser/issues/detail?id=10
55
log = logging.getLogger('HumanName')
66
log.addHandler(logging.NullHandler())
7-
log.setLevel(logging.ERROR)
87

98

109
HumanNameAttributeT = Literal['title', 'first', 'middle', 'last', 'suffix', 'nickname', 'surnames']

0 commit comments

Comments
 (0)