-
Notifications
You must be signed in to change notification settings - Fork 829
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
Create and document rules of thumb for log levels in agones code #1223
Comments
Some statistics of the log messages (total 300 rows were recorded), messages with count > 5:
Total 90.67% in above table out of 300 messages recorded. Time is 07:48:24 - 08:01:51. Duration is 13 minutes. 22 log messages / minute. Stats depends on the scenario of using Agones, but if we move some of the above messages into Debug we would reduce the amount up to a factor of 10. https://docs.google.com/spreadsheets/d/1UYy6XELta2AU6X1P223xIlGsr2-aJXTpJEIdAZVVH4o/edit?usp=sharing |
More real statistics from @KamiMay |
I really like the https://reflectoring.io/logging-levels/ article that @pooneh-m suggested in the other thread! I'm quite tempted to suggest linking to that in the development guide and practically call it a day. One rule I think should be add though - full dumps of an object (such as a We do this a bunch! (or I did this a bunch I should say 😊 ). |
Maybe this is a tad heavy handed, but he vague rule of thumb I've been working on for the Agones controller at least is - if it has to do with the controller itself - starting, stopping, config etc - that's an Info level event. If it has to do with a transient resource (fleet, gameserver etc) then that ends up being a Debug level event -- with the exception being if something goes wrong somehow (so errors are reported) |
@akremsa, can you please look is there some places which should be logged with level down or up? And probably make a change to |
Ok, I will take a look. |
@akremsa the sdkserver should be a great place to start. I feel like there is a large chunk of |
This looks like it's completed! If nobody objects, I'll close this next week. |
As per #1220 we should come up with some general thoughts on what should be info and what should be debug for log lines in the agones code.
As mentioned during the last community meeting, too much logging can become expensive.
The text was updated successfully, but these errors were encountered: