Commit 519cc029 authored by Rémy Coutable's avatar Rémy Coutable

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
parents c3c965a6 804b61eb
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment