summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-07-05 11:54:37 +0000
committerRémy Coutable <remy@rymai.me>2017-07-05 11:54:37 +0000
commit519cc029c962278d4d25c9be98a24144d7196733 (patch)
treedb45c360bffdc325b1206c5b9c57294c5145c4ae /lib
parentc3c965a6e9d83e1b300f8af8082819523fa45562 (diff)
parent804b61eb7a33d439a55c8a155b7b19ae5d9d33f8 (diff)
downloadgitlab-ce-519cc029c962278d4d25c9be98a24144d7196733.tar.gz
Merge branch 'sh-fix-bad-rails-logger' into 'master'
Fix invalid Rails.logger call in lib/gitlab/health_checks/fs_shards_check.rb See merge request !12641
Diffstat (limited to 'lib')
-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