lib/workers/log_proxy.rb in workers-0.0.6 vs lib/workers/log_proxy.rb in workers-0.0.7
- old
+ new
@@ -1,10 +1,10 @@
module Workers
class LogProxy
attr_accessor :logger
def initialize(logger)
- @logger = logger
+ @logger = logger.is_a?(Workers::LogProxy) ? logger.logger : logger
end
def debug(msg)
@logger.debug(msg) if @logger
end