diff --git a/lib/instrumental/agent.rb b/lib/instrumental/agent.rb
index <HASH>..<HASH> 100644
--- a/lib/instrumental/agent.rb
+++ b/lib/instrumental/agent.rb
@@ -473,6 +473,7 @@ module Instrumental
         # or we cannot reach the server
         # or the connection state of this socket is in a race
         logger.error "unable to connect to Instrumental, hanging up with #{@queue.size} messages remaining"
+        logger.debug "Exception: #{err.inspect}\n#{err.backtrace.join("\n")}"
         allow_reconnect = false
       else
         report_exception(err)
Add some debug logging to help with test issues