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

two minor logging changes #3131

Merged
merged 2 commits into from
Sep 4, 2017
Merged

Conversation

demmer
Copy link
Member

@demmer demmer commented Sep 4, 2017

Make the logging in HealthCheckUpdate more concise by leveraging the previously added TabletIdent string representation and adding an analogous function for concisely identifying a shard Target.

Along the way I happened to notice that the warning log added in #3084 didn't reference all the arguments in the format string, so I reworked the string so all the arguments are properly included.

…ntifiers

When tablet state changes, the logs currently include a verbose dump of the
Tablet as well as the before and after Target objects. Use the existing
TabletIdent and add an analogous TargetIdent helper function to print more
concise versions of the same information.
The error message added in b5339b7 didn't include format string entries
for all the arguments, so add them for a nicer warning message.
@alainjobart
Copy link
Contributor

alainjobart commented Sep 4, 2017

LGTM
@sougou please merge when convenient

Approved with PullApprove

@sougou sougou merged commit 6c462c9 into vitessio:master Sep 4, 2017
@ajm188 ajm188 deleted the logging-cleanup branch January 14, 2021 16:49
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.

4 participants