lib/mini_graphite/logger.rb in mini_graphite-0.2.1 vs lib/mini_graphite/logger.rb in mini_graphite-0.3.7

- old
+ new

@@ -12,10 +12,10 @@ def debug(message) return unless debug_mode result = "Dalia::MiniGraphite [#{Time.now.strftime("%Y-%m-%d %H:%M:%S")}]: #{message}" - if defined? ::Rails + if defined? ::Rails.logger ::Rails.logger.info result else Kernel.puts result end end