Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Commit

Permalink
Log the exception class and message explicitly.
Browse files Browse the repository at this point in the history
  • Loading branch information
danp committed Sep 21, 2011
1 parent e3062a2 commit d6258b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/logglier/client/http/sync.rb
Expand Up @@ -84,11 +84,11 @@ def connect!
end

def failsafe_retrying(exception, message, retries)
@failsafe.puts "WARNING: [#{retries}/#{RETRIES}] caught #{exception} while attempting to deliver: #{message}"
@failsafe.puts "WARNING: [#{retries}/#{RETRIES}] caught `#{exception.class}: #{exception.message}` while attempting to deliver: #{message}"
end

def failsafe_errored(exception, message)
@failsafe.puts "ERROR: caught #{exception} while attempting to deliver: #{message}"
@failsafe.puts "ERROR: caught `#{exception.class}: #{exception.message}` while attempting to deliver: #{message}"
end
end

Expand Down

0 comments on commit d6258b5

Please sign in to comment.