Skip to content

Commit 7b104c2

Browse files
jhollingerurkle
authored andcommitted
Fix definition of LogSubscriberExtension#debug to match Rails
1 parent abd0c44 commit 7b104c2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/multidb/log_subscriber.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ def sql(event)
88
super
99
end
1010

11-
def debug(msg)
11+
def debug(msg = nil)
1212
name = Multidb.balancer.current_connection_name
1313
if name
1414
db = color("[DB: #{name}]", ActiveSupport::LogSubscriber::GREEN, true)
15-
super(db + msg)
15+
super(db + msg.to_s)
1616
else
1717
super
1818
end

0 commit comments

Comments
 (0)