Don't print stacktrace when it doesn't match the stacktrace regex
What does this MR do and why?
Printing the whole "potential stack trace" can throw stack trace detection that's done when creating incidents, e.g. gitlab-org/quality/engineering-productivity/master-broken-incidents#5198 (comment 1760536845), and doesn't really add any value. We can always check the description of the potential issue, thanks to the => [DEBUG] Stacktrace couldn't be found for <issue url>!
debug message.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
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 Rémy Coutable