Adds some logging to investigate failing builds.