Skip to content

Business intelligence made simple

Fixed error with checks

Andrew Kanebaeaf9384991
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9ee8bd8a..59a907f7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 1.3.5 [unreleased]
+
+- Fixed error with checks
+
## 1.3.4
- Fixed issue with missing queries
diff --git a/lib/blazer.rb b/lib/blazer.rb
index 75fe4fa9..80bb412f 100644
--- a/lib/blazer.rb
+++ b/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