From 27cb9948ede9961a12d3f2d96f04d98ca33cfa66 Mon Sep 17 00:00:00 2001 From: Wandenberg Date: Mon, 9 Mar 2015 22:30:33 -0300 Subject: [PATCH] fix logger memoize --- lib/moped/loggable.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/moped/loggable.rb b/lib/moped/loggable.rb index dfebd72..de14b96 100644 --- a/lib/moped/loggable.rb +++ b/lib/moped/loggable.rb @@ -65,8 +65,7 @@ def self.warn(prefix, payload, runtime) # # @since 1.0.0 def logger - return @logger if defined?(@logger) - @logger = rails_logger || default_logger + @logger ||= rails_logger || default_logger end # Get the rails logger.