[#160] This logic is better to determine which message to append
[#160] Print stack traces only when configured