Method: TingYun::Support::Coerce.log_failure

Defined in:
lib/ting_yun/support/coerce.rb

.log_failure(value, type, context, error) ⇒ Object



85
86
87
88
89
# File 'lib/ting_yun/support/coerce.rb', line 85

def log_failure(value, type, context, error)
  msg = "Unable to convert '#{value}' to #{type}"
  msg += " in context '#{context}'" if context
  TingYun::Agent.logger.warn(msg, error)
end