[Yum-devel] [PATCH] Fix unknown syslog facility mapping.

Ville Skyttä ville.skytta at iki.fi
Mon Mar 22 17:33:06 UTC 2010


---
 yum/logginglevels.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/yum/logginglevels.py b/yum/logginglevels.py
index 6c23f88..3d82b55 100644
--- a/yum/logginglevels.py
+++ b/yum/logginglevels.py
@@ -75,7 +75,7 @@ def syslogFacilityMap(facility):
     elif (facility.upper().startswith("LOG_") and
           facility[4:].upper() in _syslog_facility_map):
         return _syslog_facility_map[facility[4:].upper()]
-    return syslog.LOG_USER
+    return syslog_module.LOG_USER
 
 def logLevelFromErrorLevel(error_level):
     """ Convert an old-style error logging level to the new style. """
-- 
1.7.0.1



More information about the Yum-devel mailing list