Fix error logging with `GitlabSettings::Options`
What does this MR do and why?
!122888 (merged) added logging that did not work properly. Clean up the exception handling to use Gitlab::ErrorTracking.track_and_raise_for_dev_exception
and fix
the test.
Relates to #415968 (closed)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Stan Hu