Fix debug logging for build
with a build script
#8760
Merged
build
with a build script
#8760