Skip to content

two minor logging changes#3131

Merged
sougou merged 2 commits intovitessio:masterfrom
tinyspeck:logging-cleanup
Sep 4, 2017
Merged

two minor logging changes#3131
sougou merged 2 commits intovitessio:masterfrom
tinyspeck:logging-cleanup

Conversation

@demmer
Copy link
Copy Markdown
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
Copy Markdown
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