Remove debugging console.log() from, fixes #18120.
It snuck into the code in 333e91c3a622eb8e123bb1bcf04494df610a22ad.