Sha256: 1a9a28d79eb9ecde02c6116a7d96728a317aefa03ecdf6b00ebc18d52463b6f0
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
module Zetto::Services module Info class << self def error_message(message, error = nil) if !error.nil? && error.is_a?(StandardError) if Zetto::Config::Params.log logger = Zetto::Services::ZettoLogger.instance logger.fatal { I18n.t('log.error') + "\n" + message + "\n" + error.message } end else $stderr.puts message end end def info(message) puts message end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zetto-2.2.0 | lib/zetto/services/info.rb |