lib/plugins/plugin.rb in rsence-pre-2.1.0.18 vs lib/plugins/plugin.rb in rsence-pre-2.1.0.19
- old
+ new
@@ -330,10 +330,10 @@
end
# @private Returns a sanitized copy of a single responder specification.
def sanitize_value_responders( responders_dirty )
if responders_dirty.class != Array
- warn "Unsupported responders type: #{responders_dirty.inspect} (expected Array or Hash). Trying work-around.." unless responders_dirty.class == Hash and RSence.args[:verbose]
+ warn "Unsupported responders type: #{responders_dirty.inspect} (expected Array or Hash). Trying work-around.." if responders_dirty.class != Hash and RSence.args[:debug]
responders_dirty = [ responders_dirty ]
end
responders_clean = []
responders_dirty.each do |responder_dirty|
if responder_dirty.class != Hash