summaryrefslogtreecommitdiff
path: root/lib/mixlib
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mixlib')
-rw-r--r--lib/mixlib/log.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mixlib/log.rb b/lib/mixlib/log.rb
index 599ac57..2d2653d 100644
--- a/lib/mixlib/log.rb
+++ b/lib/mixlib/log.rb
@@ -46,7 +46,7 @@ module Mixlib
# and creates a new one if it doesn't yet exist
##
def logger
- @logger || init
+ @logger ||= init
end
# Sets the log device to +new_log_device+. Any additional loggers