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) logger = Endeca.logger logger.debug(message) if Endeca.debug? && logger end end end