lib/ably/logger.rb in ably-1.0.5 vs lib/ably/logger.rb in ably-1.0.6
- old
+ new
@@ -80,10 +80,10 @@
defined?(Ably::Realtime::Client) && client.kind_of?(Ably::Realtime::Client)
end
def default_logger
::Logger.new(STDOUT).tap do |logger|
- logger.formatter = proc do |severity, datetime, progname, msg|
+ logger.formatter = lambda do |severity, datetime, progname, msg|
severity = ::Logger::SEV_LABEL.index(severity) if severity.kind_of?(String)
formatted_date = if severity == ::Logger::DEBUG
datetime.strftime("%H:%M:%S.%L")
else