diff --git a/lib/arjdbc/jdbc/adapter.rb b/lib/arjdbc/jdbc/adapter.rb
index <HASH>..<HASH> 100644
--- a/lib/arjdbc/jdbc/adapter.rb
+++ b/lib/arjdbc/jdbc/adapter.rb
@@ -271,6 +271,12 @@ module ActiveRecord
       def select(*args)
         execute(*args)
       end
+
+      def translate_exception(e, message)
+        puts e.backtrace if $DEBUG || ENV['DEBUG']
+        super
+      end
+      protected :translate_exception
     end
   end
 end
diff --git a/test/jdbc_common.rb b/test/jdbc_common.rb
index <HASH>..<HASH> 100644
--- a/test/jdbc_common.rb
+++ b/test/jdbc_common.rb
@@ -20,6 +20,6 @@ require 'helper'
 require 'test/unit'
 
 # Comment/uncomment to enable logging to be loaded for any of the database adapters
-# require 'db/logger'
+require 'db/logger' if $DEBUG || ENV['DEBUG']
Dump more info (logging, exception backtraces) when $DEBUG or ENV['DEBUG'] set