[PATCH 05/21] Properly set the logger
Mathieu Bridon
bochecha at fedoraproject.org
Wed May 6 11:53:01 UTC 2015
From: Mathieu Bridon <bochecha at daitauha.fr>
Using __name__ here means that submodule will all be able to use the
same logging configuration.
---
src/pyrpkg/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pyrpkg/__init__.py b/src/pyrpkg/__init__.py
index c6a13ca..9e706b4 100644
--- a/src/pyrpkg/__init__.py
+++ b/src/pyrpkg/__init__.py
@@ -52,7 +52,7 @@ class NullHandler(logging.Handler):
h = NullHandler()
# This is our log object, clients of this library can use this object to
# define their own logging needs
-log = logging.getLogger("rpkg")
+log = logging.getLogger(__name__)
# Add the null handler
log.addHandler(h)
--
2.1.0
More information about the rel-eng
mailing list