logging at the starting stage

This commit is contained in:
programmer10110 2020-10-27 13:01:22 +03:00
parent 584b855ecf
commit 4e5cec3348
2 changed files with 3 additions and 2 deletions

View File

@ -83,7 +83,7 @@ func (c *BaseClient) StartHTTPServer(listenAddr string) error {
mux.HandleFunc("/getFSMDump", c.getFSMDumpHandler)
mux.HandleFunc("/getFSMList", c.getFSMList)
c.Logger.Log("Starting HTTP server on address: %s", listenAddr)
c.Logger.Log("HTTP server started on address: %s", listenAddr)
return http.ListenAndServe(listenAddr, mux)
}

View File

@ -218,7 +218,8 @@ func startClientCommand() *cobra.Command {
log.Fatalf("HTTP server error: %v", err)
}
}()
cli.GetLogger().Log("starting to poll messages from append-only log...")
cli.GetLogger().Log("Client started to poll messages from append-only log")
cli.GetLogger().Log("Waiting for messages from append-only log...")
if err = cli.Poll(); err != nil {
log.Fatalf("error while handling operations: %v", err)
}