Skip to content

Commit

Permalink
fix log output (tikv#6364)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
  • Loading branch information
rleungx and ti-chi-bot[bot] committed Aug 2, 2023
1 parent 006d417 commit 4e05571
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,10 @@ func (c *client) setServiceMode(newMode pdpb.ServiceMode) {
oldTSOSvcDiscovery.Close()
}
}
oldMode := c.serviceMode
c.serviceMode = newMode
log.Info("[pd] service mode changed",
zap.String("old-mode", c.serviceMode.String()),
zap.String("old-mode", oldMode.String()),
zap.String("new-mode", newMode.String()))
}

Expand Down

0 comments on commit 4e05571

Please sign in to comment.