Log truncation to 18-6 stable branch

Add a hook for truncating the error message. It's important to prevent Gitaly from logging huge errors that could break log ingestors and log parsers.

!8328 (merged) is the original MR

Merge request reports

Loading