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

router, backend: refine some logs #259

Merged
merged 5 commits into from
Apr 3, 2023
Merged

Conversation

djshow832
Copy link
Collaborator

@djshow832 djshow832 commented Apr 2, 2023

What problem does this PR solve?

Issue Number: close #218

Problem Summary:
Some problems of logs:

  • some are redundant
  • not easy to search
  • lack of information

What is changed and how it works:

  • Uniform keywords like update backend, client_addr, backend_addr, connID for easier search
  • Print the scores of source and goal backend before redirection
  • Change some logs to debug level to reduce logs

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Notable changes

  • Has configuration change
  • Has HTTP API interfaces change
  • Has tiproxyctl change
  • Other user behavior changes

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@djshow832 djshow832 changed the title *: refine some logs router, backend: refine some logs Apr 2, 2023
@djshow832 djshow832 requested a review from xhebox April 2, 2023 07:50
@djshow832 djshow832 merged commit e85dc2a into pingcap:main Apr 3, 2023
@djshow832 djshow832 deleted the refine_logs branch April 3, 2023 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove redundant logs
2 participants