Output logs when the build fails