summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-07-04 23:22:59 -0700
committerStan Hu <stanhu@gmail.com>2017-07-04 23:22:59 -0700
commit804b61eb7a33d439a55c8a155b7b19ae5d9d33f8 (patch)
treea69134bd844fa41201011340e6cb696e198a0167
parent5af1fcd6f329858d757bab0d67cb50af6c820160 (diff)
downloadgitlab-ce-804b61eb7a33d439a55c8a155b7b19ae5d9d33f8.tar.gz
Fix invalid Rails.logger call in lib/gitlab/health_checks/fs_shards_check.rbsh-fix-bad-rails-logger
-rw-r--r--lib/gitlab/health_checks/fs_shards_check.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/health_checks/fs_shards_check.rb b/lib/gitlab/health_checks/fs_shards_check.rb
index e78b7f22e03..70da4080cae 100644
--- a/lib/gitlab/health_checks/fs_shards_check.rb
+++ b/lib/gitlab/health_checks/fs_shards_check.rb
@@ -52,7 +52,7 @@ module Gitlab
]
end
rescue RuntimeError => ex
- Rails.logger("unexpected error #{ex} when checking #{ok_metric}")
+ Rails.logger.error("unexpected error #{ex} when checking #{ok_metric}")
[metric(ok_metric, 0, **labels)]
end