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

Reduce logspam at info level #10504

Merged
merged 2 commits into from Mar 12, 2022
Merged

Conversation

Pokechu22
Copy link
Contributor

After dolphin-emu/fifoci#47, fifoci now shows log messages at the info level. This greatly inflated the log sizes; however, as some spammy log messages are included. pr-fifoci-ogl-lin-mesa has a 9 MB, 69091-line log, of which 63854 lines are related to various FileUtil operations. And pr-fifoci-sw-lin-mesa has a 572 MB, 5128601-line log, of which 63345 lines were related to FileUtil, and 5060654 were related to the software renderer saying that the RGB565_Z16 pixel format isn't correctly supported multiple times for every single pixel drawn. (The hardware renderers also do not correctly support RGB565_Z16 at this time, but they don't have any such logging.)

I've removed the RGB565_Z16 messages, and changed the FileUtil ones to be at the debug level (apart from a few messages that are possibly useful to users).

This message would be logged, usually multiple times, for EVERY. SINGLE. PIXEL. That's pretty much useless and just makes the log unreadable. Plus, the current support (which acts as RGB8) is close enough that for end-user purposes, it's fine.  I don't think the hardware backends support RGB565_Z16 and its antialiasing functionality correctly either, but they don't have similar logspam.
These messages hid other, more important, ones often.  I have left AttemptMaxTimesWithExponentialDelay and GetSysDirectory/SetSysDirectory as info, since those are called infrequently and can be useful to the end-user.
@Pokechu22
Copy link
Contributor Author

New logs:

Note that logs are stored compressed on the buildbot, so the amount of used storage is even smaller, and that the log I am referring to is shell_3 (gfx test).

@sepalani
Copy link
Contributor

LGTM.

Many of the FileUtil COMMON logs were redundant with some logs (IOS FS and WFS) anyway.

@JosJuice JosJuice merged commit 9962b0b into dolphin-emu:master Mar 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants