lib/hcheck/checks/mysql.rb in hcheck-0.1.0 vs lib/hcheck/checks/mysql.rb in hcheck-0.1.1

- old
+ new

@@ -6,13 +6,9 @@ module Mysql # @config { host, port, username, password, database } def status(config) connection = Mysql2::Client.new(config) connection.close - 'ok' - rescue Mysql2::Error => e - Hcheck.logger.error "[HCheck] Mysql2::Error::ConnectionError #{e.message}" - 'bad' end def self.included(_base) require 'mysql2' end