don't print stack strace in logs if message is available