From 4e5cec3348d36dffceba5be7d44e813d625ea422 Mon Sep 17 00:00:00 2001 From: programmer10110 Date: Tue, 27 Oct 2020 13:01:22 +0300 Subject: [PATCH] logging at the starting stage --- client/http_server.go | 2 +- cmd/dc4bc_d/main.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/http_server.go b/client/http_server.go index 95245df..b520a51 100644 --- a/client/http_server.go +++ b/client/http_server.go @@ -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) } diff --git a/cmd/dc4bc_d/main.go b/cmd/dc4bc_d/main.go index 1740358..fd12352 100644 --- a/cmd/dc4bc_d/main.go +++ b/cmd/dc4bc_d/main.go @@ -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) }