Signed-off-by: FUJITA Tomonori <[email protected]>
---
 ryu/log.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ryu/log.py b/ryu/log.py
index 6c0d327..b9a3c3a 100644
--- a/ryu/log.py
+++ b/ryu/log.py
@@ -17,6 +17,7 @@
 from __future__ import print_function
 from oslo.config import cfg
 import inspect
+import platform
 import logging
 import logging.config
 import logging.handlers
@@ -85,7 +86,11 @@ def init_log():
         _EARLY_LOG_HANDLER = None
 
     if CONF.use_syslog:
-        syslog = logging.handlers.SysLogHandler(address='/dev/log')
+        if platform.system() == 'Darwin':
+            address = '/var/run/syslog'
+        else:
+            address = '/dev/log'
+        syslog = logging.handlers.SysLogHandler(address=address)
         log.addHandler(syslog)
 
     log_file = _get_log_file()
-- 
1.8.3.4 (Apple Git-47)


------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to