Skip to content

Commit

Permalink
pkg/tz(ticdc): better log
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-rustin authored and ti-chi-bot committed Apr 21, 2023
1 parent aaf4d62 commit be52caf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/sink/mysql/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,9 @@ func getSafeMode(values url.Values, safeMode *bool) error {
func getTimezone(ctxWithTimezone context.Context, values url.Values, timezone *string) error {
const pleaseSpecifyTimezone = "We recommend that you specify the time-zone explicitly. " +
"Please make sure that the timezone of the TiCDC server, " +
"sink-uri and the downstream database are consistent."
"sink-uri and the downstream database are consistent. " +
"If the downstream database does not load the timezone information, " +
"you can refer to https://dev.mysql.com/doc/refman/8.0/en/mysql-tzinfo-to-sql.html."
serverTimezone := contextutil.TimezoneFromCtx(ctxWithTimezone)
if _, ok := values["time-zone"]; !ok {
// If time-zone is not specified, use the timezone of the server.
Expand Down

0 comments on commit be52caf

Please sign in to comment.