Issue #20264 Fix debug logging.