Console output text changes
This commit is contained in:
parent
2f5175c1f4
commit
89a1e8e7fc
3 changed files with 6 additions and 4 deletions
|
@ -43,6 +43,8 @@ func indexAction(ctx *cli.Context) error {
|
|||
elapsed := time.Since(start)
|
||||
|
||||
log.Infof("indexed %d files in %s", len(files), elapsed)
|
||||
|
||||
conf.Shutdown()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ func Start(ctx context.Context, conf *config.Config) {
|
|||
go func() {
|
||||
if err := server.ListenAndServe(); err != nil {
|
||||
if err == http.ErrServerClosed {
|
||||
log.Info("web server closed")
|
||||
log.Info("web server shutdown complete")
|
||||
} else {
|
||||
log.Errorf("web server closed unexpect: %s", err)
|
||||
}
|
||||
|
@ -42,9 +42,9 @@ func Start(ctx context.Context, conf *config.Config) {
|
|||
}()
|
||||
|
||||
<-ctx.Done()
|
||||
log.Info("shutting down REST server...")
|
||||
log.Info("shutting down web server")
|
||||
err := server.Close()
|
||||
if err != nil {
|
||||
log.Errorf("failed to shutdown REST server: %v", err)
|
||||
log.Errorf("web server shutdown failed: %v", err)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -107,7 +107,7 @@ func Start(ctx context.Context, path string, port uint, host string, debug bool)
|
|||
<-ctx.Done()
|
||||
serverShutdown(true)
|
||||
cleanup()
|
||||
log.Info("tidb server shutdown complete.")
|
||||
log.Info("tidb server shutdown complete")
|
||||
}
|
||||
|
||||
func registerStores() {
|
||||
|
|
Loading…
Reference in a new issue