[rhel6-branch 9/30] There is no NullHandler() in 2.6 logging, so omit it.
mulkieran
installerbot-noreply at redhat.com
Thu May 28 21:04:14 UTC 2015
From: Anne Mulhern <amulhern at redhat.com>
From 2.7 documentation:
This handler does nothing. It's intended to be used to avoid the
"No handlers could be found for logger XXX" one-off warning.
...
If the user of the library does not configure logging, the one-off warning
might be produced.
So, it's up to blivet's client to "configure" logging.
Signed-off-by: Anne Mulhern <amulhern at redhat.com>
---
blivet/storage_log.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/blivet/storage_log.py b/blivet/storage_log.py
index 6ee694c..93adfee 100644
--- a/blivet/storage_log.py
+++ b/blivet/storage_log.py
@@ -4,7 +4,6 @@
import traceback
log = logging.getLogger("blivet")
-log.addHandler(logging.NullHandler())
def function_name_and_depth():
IGNORED_FUNCS = ["function_name_and_depth",
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/f904b9b005785ed1dd1cff8b70fddf057aff9118
More information about the anaconda-patches
mailing list