Skip to content

Commit

Permalink
domain: fix log typos. (pingcap#10012)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiekeyi98 authored and crazycs520 committed Apr 3, 2019
1 parent 4cbe896 commit 9fb2bad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions domain/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (do *Domain) loadInfoSchema(handle *infoschema.Handle, usedSchemaVersion in
logutil.Logger(context.Background()).Error("failed to load schema diff", zap.Error(err))
}
if ok {
logutil.Logger(context.Background()).Info("diff load InfoSchema from version failed",
logutil.Logger(context.Background()).Info("diff load InfoSchema success",
zap.Int64("usedSchemaVersion", usedSchemaVersion),
zap.Int64("latestSchemaVersion", latestSchemaVersion),
zap.Duration("start time", time.Since(startTime)),
Expand All @@ -130,7 +130,7 @@ func (do *Domain) loadInfoSchema(handle *infoschema.Handle, usedSchemaVersion in
if err != nil {
return 0, nil, fullLoad, errors.Trace(err)
}
logutil.Logger(context.Background()).Info("full load InfoSchema failed", zap.Int64("usedSchemaVersion", usedSchemaVersion),
logutil.Logger(context.Background()).Info("full load InfoSchema success", zap.Int64("usedSchemaVersion", usedSchemaVersion),
zap.Int64("latestSchemaVersion", latestSchemaVersion), zap.Duration("start time", time.Since(startTime)))
newISBuilder.Build()
return latestSchemaVersion, nil, fullLoad, nil
Expand Down

0 comments on commit 9fb2bad

Please sign in to comment.