瀏覽代碼

Fixed error with checks

Andrew Kane 9 年之前
父節點
當前提交
baeaf93849
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 4 0
      CHANGELOG.md
  2. 1 1
      lib/blazer.rb

+ 4 - 0
CHANGELOG.md

@@ -1,3 +1,7 @@
+## 1.3.5 [unreleased]
+
+- Fixed error with checks
+
 ## 1.3.4
 
 - Fixed issue with missing queries

+ 1 - 1
lib/blazer.rb

@@ -76,7 +76,7 @@ module Blazer
             Rails.logger.info "[blazer timeout] query=#{check.query.name}"
             tries += 1
             sleep(10)
-          elsif error.start_with?("PG::ConnectionBad")
+          elsif error.to_s.start_with?("PG::ConnectionBad")
             data_sources[check.query.data_source].reconnect
             Rails.logger.info "[blazer reconnect] query=#{check.query.name}"
             tries += 1