Permalink
Browse files

More debugging for postgres

  • Loading branch information...
1 parent 2a716d9 commit ba3e5da89f1857a6e61c66a0b507ffd003c01b06 @itsderek23 itsderek23 committed May 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 postgresql_monitoring/postgresql_monitoring.rb
@@ -36,7 +36,7 @@ def build_report
pgconn = PGconn.new(:host=>option(:host), :user=>option(:user), :password=>option(:password), :port=>option(:port).to_i, :dbname=>option(:dbname))
rescue PGError => e
return errors << {:subject => "Unable to connect to PostgreSQL.",
- :body => "Scout was unable to connect to the PostgreSQL server: #{e.backtrace}"}
+ :body => "Scout was unable to connect to the PostgreSQL server: \n\n#{e}\n\n#{e.backtrace}"}
end
result = pgconn.exec('SELECT sum(idx_tup_fetch) AS "rows_select_idx",
sum(seq_tup_read) AS "rows_select_scan",

0 comments on commit ba3e5da

Please sign in to comment.