codesake-commons 0.83.0 → 0.83.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/codesake/commons/logging.rb +2 -2
- data/lib/codesake/commons/version.rb +1 -1
- metadata +1 -1
@@ -82,8 +82,8 @@ module Codesake
|
|
82
82
|
def send_to_syslog(msg, level)
|
83
83
|
return false unless @syslog
|
84
84
|
|
85
|
-
|
86
|
-
|
85
|
+
log = Syslog.open("codesake") unless Syslog.opened?
|
86
|
+
log = Syslog.reopen("codesake") if Syslog.opened?
|
87
87
|
Syslog.log(Syslog::LOG_DEBUG, msg.to_s) if level == :debug
|
88
88
|
Syslog.log(Syslog::LOG_WARNING, msg.to_s) if level == :warn
|
89
89
|
Syslog.log(Syslog::LOG_INFO, msg.to_s) if level == :helo
|