Add more logging to MergeService
What does this MR do and why?
While investigating #389044, it is noticeable that MergeTrains::RefreshWorker
that utilizes MergeRequests::MergeService
stops logging after Git merge is done.
A theory is the ensure block in #commit
is stopping the execution for some unknown reason yet.
This adds logging to that block to see if that block gets executed and failing. It could potentially help in investigating the bug.
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.
Related to #389044