Skip to content
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.

Commit

Permalink
add default event type for Logger#log to stay API compatible with <1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikh committed Oct 21, 2011
1 parent 3e880c6 commit 6bb4ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cinch/logger/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def log_exception(e)
# @param [Symbol<:debug, :info, :warn, :error, :fatal>] level The level of the message
# @return [void]
# @version 1.2.0
def log(messages, event, level = event)
def log(messages, event = :debug, level = event)
return unless will_log?(level)
@mutex.synchronize do
Array(messages).each do |message|
Expand Down

0 comments on commit 6bb4ecf

Please sign in to comment.