reduce privacy leaks when presenting log and debug information to users, patch by wangi - fix #25141 (missing files)