Issue #20264 Fix debug logging.
Someone remove this???
Need to fix this.