codesake_commons 0.50.0 → 0.55.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/codesake_commons/logging.rb +2 -1
- data/lib/codesake_commons/version.rb +1 -1
- metadata +2 -2
@@ -68,7 +68,8 @@ module Codesake
|
|
68
68
|
def send_to_syslog(msg, level)
|
69
69
|
return false unless @syslog
|
70
70
|
|
71
|
-
log = Syslog.open("codesake")
|
71
|
+
log = Syslog.open("codesake") unless Syslog.opened?
|
72
|
+
log = Syslog.reopen("codesake") if Syslog.opened?
|
72
73
|
log.debug(msg) if level == :debug
|
73
74
|
log.warn(msg) if level == :warn
|
74
75
|
log.info(msg) if level == :helo
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codesake_commons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.55.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rainbow
|