aternosorg / mclogs

Paste, share and analyse Minecraft logs
https://mclo.gs
MIT License
183 stars 33 forks source link

Hide the value of `USERNAME` in the JVM crash log #70

Closed RisingInIris2017 closed 4 months ago

RisingInIris2017 commented 1 year ago

I must first admit that I am not a professional programmer, so I apologize if any irregularities in the terminology used in the rest of this article cause you any inconvenience in understanding.

The "JVM crash logs" I describe are generated when JVM crashes, which often have a file name like hs_err_pid<number>.log.

This log is an example: https://mclo.gs/3BsZafd

I always use mclogs to post them when they are required. I find that, mclogs will hide all username in logs, when the username is presented in the directory of User folder, like this: C:\Users\********\AppData\Local

However, the JVM crash log have a line like: USERNAME=<current user name logged in> But the user name in this line is not hidden, so all the other desensitization work is done for nothing. You will see <Here it is> because I desensitized that manually.

This is all I have to give feedback. Thanks in advance for your kind-hearted helps.