Skip to content

Commit 4371ae9

Browse files
committed
Use module name for the test logger instance.
No need to hardcoded module name when `__name__` works as well.
1 parent 9431981 commit 4371ae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diffpy/srfit/tests/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import logging
2121

2222
logging.basicConfig()
23-
logger = logging.getLogger('diffpy.srfit.tests')
23+
logger = logging.getLogger(__name__)
2424
del logging
2525

2626

0 commit comments

Comments
 (0)