Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CommandProcessor: Move unknown opcode log message before the panic alert and log ignored unknown opcodes at warn level #10449

Merged
merged 2 commits into from Feb 13, 2022

Conversation

Pokechu22
Copy link
Contributor

Moving the unknown opcode log log message before the panic alert means that the extra information is already in the log by the time the panic alert appears, which is slightly more convenient for debugging. And changing it to the warn level matters because large amounts of logging can have an impact on performance, so moving the messages for unknown opcodes that have been determined to not matter gives a way to hide those messages without hiding actual errors (and also gives a fast visual way of distinguishing between ignored and non-ignored ones due to the different colors).

This way, the extra information is already in the log by the time the panic alert appears, which is slightly more convenient for debugging.
Large amounts of logging can have an impact on performance, so moving the ones that have been determined to not matter to the warn level gives a way to hide those messages without hiding actual errors (and also gives a fast visual way of distinguishing between ignored and non-ignored ones due to the different colors).
@Pokechu22 Pokechu22 merged commit 7c91acb into dolphin-emu:master Feb 13, 2022
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants