fix whitespaces, cause really, why not?

This commit is contained in:
2011-01-27 10:20:13 +00:00
parent f35303b8b2
commit 079bb5388c
5 changed files with 12 additions and 11 deletions

View File

@@ -43,4 +43,3 @@ module AMQP
end # BasicClient
end # Failover
end # AMQP

View File

@@ -3,29 +3,29 @@
module AMQP
module Failover
class Logger
attr_accessor :enabled
def initialize(enabled = nil)
@enabled = enabled || true
end
def error(*msg)
msg[0] = "[ERROR]: " + msg[0] if msg[0].is_a?(String)
write(*msg)
end
def info(*msg)
write(*msg)
end
private
def write(*msg)
return if !@enabled
puts *msg
end
end # Logger
end # Failover
end # AMQP