lib/docman/logging.rb in docman-0.0.84 vs lib/docman/logging.rb in docman-0.0.85
- old
+ new
@@ -29,10 +29,16 @@
# logger.send(type, "#{prefix} - #{message} - finish") if @log
result
end
def log(message, type = 'debug')
- logger.send(type, "#{prefix} - #{message}")
+ if type == 'debug'
+ if Application::instance.options.has_key?('debug')
+ logger.send(type, "#{prefix} - #{message}")
+ end
+ else
+ logger.send(type, "#{prefix} - #{message}")
+ end
end
def prefix
end
\ No newline at end of file