The current approach produces up to five log messages for a single issue, including one with just an empty string as the message. This makes log analysis more complicated, it is probably better to condense all desired information into a single message.
I would actually suggest to remove the _*dump() functions entirely, as log messages shouldn't come with formatting and using standard log.error(msg) calls would probably make the code more readable.
The current approach produces up to five log messages for a single issue, including one with just an empty string as the message. This makes log analysis more complicated, it is probably better to condense all desired information into a single message.
I would actually suggest to remove the
_*dump()
functions entirely, as log messages shouldn't come with formatting and using standardlog.error(msg)
calls would probably make the code more readable.