lib/lorekeeper/fast_logger.rb in lorekeeper-2.1.0 vs lib/lorekeeper/fast_logger.rb in lorekeeper-2.2.0
- old
+ new
@@ -54,10 +54,10 @@
end
# This is part of the standard Logger API, we need this to be compatible
def add(severity, message_param = nil, progname = nil, &block)
return true if severity < @level
- message = message_param || (block && block.call) || progname
+ message = (block && block.call) || message_param || progname
log_data(severity, message.freeze)
end
# Some gems like to add this method. For instance:
# https://github.com/rails/activerecord-session_store