lib/zendesk_api/rescue.rb in zendesk_api-0.1.7 vs lib/zendesk_api/rescue.rb in zendesk_api-0.1.8

- old
+ new

@@ -1,11 +1,13 @@ module ZendeskAPI + # @private module Rescue def self.included(klass) klass.extend(Methods) klass.send(:include, Methods) end + # @private module Methods def log_error(e, method = false) if logger = (@client ? @client.config.logger : Kernel) logger.warn "#{self} - #{method}" if method logger.warn e.message