Output stack traces with error logs