lib/endeca/logging.rb in endeca-1.4.2 vs lib/endeca/logging.rb in endeca-1.5.0
- old
+ new
@@ -1,9 +1,10 @@
module Endeca
module Logging
# Log and benchmark the workings of a single block. Will only be called if
# Endeca.benchmark is true
def log(message)
- Endeca.logger.debug(message) if Endeca.debug && Endeca.logger
+ logger = Endeca.logger
+ logger.debug(message) if Endeca.debug? && logger
end
end
end