Commit 804b61eb authored by Stan Hu's avatar Stan Hu

Fix invalid Rails.logger call in lib/gitlab/health_checks/fs_shards_check.rb

parent 5af1fcd6
......@@ -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