Sha256: a708d4370e30a1bd4c85447280f7c44271449029dbd44a8c0d03b29f4fa0f404
Contents?: true
Size: 444 Bytes
Versions: 101
Compression:
Stored size: 444 Bytes
Contents
module Scrivito module Warning def self.warn(message) Rails.logger.warn("[Scrivito] WARNING! #{message}") end def self.error(message, exception=nil) if exception padded_backtrace = exception.backtrace.map { |line| " #{line}" } message += ": #{exception.class.to_s} (#{exception})\n#{padded_backtrace.join("\n")}" end Rails.logger.error("[Scrivito] ERROR! #{message}") end end end
Version data entries
101 entries across 101 versions & 1 rubygems