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

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

parent 5af1fcd6
......@@ -52,7 +52,7 @@ def operation_metrics(ok_metric, latency_metric, operation, **labels)
]
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