lib/hcheck/checks/postgresql.rb in hcheck-0.1.0 vs lib/hcheck/checks/postgresql.rb in hcheck-0.1.1
- old
+ new
@@ -8,13 +8,9 @@
def status(config)
config[:user] = config.delete(:username) if config[:username]
config[:dbname] = config.delete(:database) if config[:database]
PG::Connection.new(config).close
- 'ok'
- rescue PG::ConnectionBad => e
- Hcheck.logger.error "[HCheck] PG::ConnectionBad #{e.message}"
- 'bad'
end
def self.included(_base)
require 'pg'
end