multilogger 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/multilogger.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/lib/multilogger.rb
CHANGED
@@ -21,7 +21,7 @@ class MultiLogger < ActiveSupport::BufferedLogger
|
|
21
21
|
|
22
22
|
def add(severity, message=nil, progname=nil, &block)
|
23
23
|
@extra_logs.keys.each do |pattern|
|
24
|
-
if message && message.match(pattern)
|
24
|
+
if message && message.respond_to?(:match) && message.match(pattern)
|
25
25
|
return @extra_logs[pattern].add(severity, message, progname, &block)
|
26
26
|
end
|
27
27
|
end
|