Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
fix logger memoize
Browse files Browse the repository at this point in the history
  • Loading branch information
wandenberg committed Mar 10, 2015
1 parent cdefb4a commit 27cb994
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/moped/loggable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 27cb994

Please sign in to comment.