components/python/oslo.log/patches/01-fix-syslog.patch
branchs11u3-sru
changeset 6035 c9748fcc32de
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/oslo.log/patches/01-fix-syslog.patch	Fri May 20 17:42:29 2016 -0400
@@ -0,0 +1,20 @@
+In-house patch to remove the hardcoding of /dev/log as the address for
+syslog.  The default logging module is smart enough to use the proper
+path in Solaris.
+
+--- oslo.log-1.0.0/oslo_log/log.py.orig	2015-09-29 16:41:03.335483630 -0600
++++ oslo.log-1.0.0/oslo_log/log.py	2015-09-29 16:41:23.112003925 -0600
+@@ -285,11 +285,9 @@ def _setup_logging_from_conf(conf, proje
+             # TODO(bogdando) use the format provided by RFCSysLogHandler
+             #   after existing syslog format deprecation in J
+             if conf.use_syslog_rfc_format:
+-                syslog = handlers.RFCSysLogHandler(address='/dev/log',
+-                                                   facility=facility)
++                syslog = handlers.RFCSysLogHandler(facility=facility)
+             else:
+-                syslog = logging.handlers.SysLogHandler(address='/dev/log',
+-                                                        facility=facility)
++                syslog = logging.handlers.SysLogHandler(facility=facility)
+             log_root.addHandler(syslog)
+         except socket.error:
+             log_root.error('Unable to add syslog handler. Verify that syslog '