-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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 stack logging #10586
Comments
PTAL @lysu |
@nolouch @lysu can we get pd and TiDB to agree on the behavior here? My suggestion is
Errors should have a way to trace an error. in PD I tried to start creating operational traces rather than stack traces. That is, one should be able to understand what operations are happening that lead up to the error. The stack trace is occasionally useful, but usually less useful than an operational trace The error message itself or unique error codes (this is something we need!) are usually good enough to locate the source position of the error |
Actually, I am changing my mind: for now given our lack of error and operation codes, it may be best to log stack traces for errors for now. But I still think they should not be logged by default for warnings. |
Feature Request
Make it possible to reduce the logging of stack traces
Problem
After upgrading TiDB, it is now logging lots of stack traces from warnings. This can make for a lot more data in the log collection pipeline.
Alternatives
Don't log warnings. This does fix my issue, but it creates another one!
Solutions
Solutions to reduce stack trace output
/home/jenkins/workspace/release_tidb_2.1-ga/
)Releasing
It would be great
The text was updated successfully, but these errors were encountered: