lib/hedgelog.rb in hedgelog-0.1.3 vs lib/hedgelog.rb in hedgelog-0.1.4
- old
+ new
@@ -43,10 +43,10 @@
@level = int_level
end
attr_writer :app
- def add(severity = LEVELS[:unknown], message = nil, progname = nil, context, &block)
+ def add(severity = LEVELS[:unknown], message = nil, progname = nil, context = {}, &block)
return true if (@logdev.nil? && @channel.nil?) || severity < @level
message, context = *yield if block
context ||= {}