module Alchemy
  module Logger

    # Logs a warning to the Rails standard logger and adds some nicer formatting
    def self.warn(message, caller_string)
      Rails.logger.warn %(\n++++ WARNING: #{message}\nCalled from: #{caller_string}\n)
      return nil
    end

    def log_warning(message)
      Alchemy::Logger.warn(message, caller.first)
    end

  end
end

module Alchemy
  module Logger

    # Logs a debug message to the Rails standard logger and adds some nicer formatting
    def self.warn(message, caller_string)
      Rails.logger.debug %(\n++++ WARNING: #{message}\nCalled from: #{caller_string}\n)
      return nil
    end

    def log_warning(message)
      Alchemy::Logger.warn(message, caller.first)
    end

  end
end

Change log level of Alchemy.log_warning from warn to debug.
Change log level of Alchemy.log_warning from warn to debug.

Log level warn is also used in production environments.
But the Alchemy warn logger is meant to only log in dev environments.
