mirror of https://github.com/certusone/dc4bc.git
logging at the starting stage
This commit is contained in:
parent
584b855ecf
commit
4e5cec3348
|
@ -83,7 +83,7 @@ func (c *BaseClient) StartHTTPServer(listenAddr string) error {
|
||||||
mux.HandleFunc("/getFSMDump", c.getFSMDumpHandler)
|
mux.HandleFunc("/getFSMDump", c.getFSMDumpHandler)
|
||||||
mux.HandleFunc("/getFSMList", c.getFSMList)
|
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)
|
return http.ListenAndServe(listenAddr, mux)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -218,7 +218,8 @@ func startClientCommand() *cobra.Command {
|
||||||
log.Fatalf("HTTP server error: %v", err)
|
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 {
|
if err = cli.Poll(); err != nil {
|
||||||
log.Fatalf("error while handling operations: %v", err)
|
log.Fatalf("error while handling operations: %v", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue