lib/docman/logging.rb in docman-0.0.85 vs lib/docman/logging.rb in docman-0.0.86

- old
+ new

@@ -30,10 +30,10 @@ result end def log(message, type = 'debug') if type == 'debug' - if Application::instance.options.has_key?('debug') + if Application::instance.options.respond_to?('has_key') and Application::instance.options.has_key?('debug') logger.send(type, "#{prefix} - #{message}") end else logger.send(type, "#{prefix} - #{message}") end \ No newline at end of file