fix for missing error details in log messages when the stack trace already contained json