diff --git a/pkg/api/balances.go b/pkg/api/balances.go index b4ee1b2e8a5..94400669597 100644 --- a/pkg/api/balances.go +++ b/pkg/api/balances.go @@ -39,8 +39,8 @@ func (s *Service) balancesHandler(w http.ResponseWriter, _ *http.Request) { balances, err := s.accounting.Balances() if err != nil { jsonhttp.InternalServerError(w, errCantBalances) - logger.Debug("balances: get balances failed", "error", err) - logger.Error(nil, "balances: get balances failed") + logger.Debug("get balances failed", "error", err) + logger.Error(nil, "get balances failed") return } diff --git a/pkg/api/util.go b/pkg/api/util.go index aaca0f253c5..49dce9e6901 100644 --- a/pkg/api/util.go +++ b/pkg/api/util.go @@ -123,7 +123,7 @@ var preMapHooks = map[string]func(v string) (string, error){ } // mapStructure maps the input to the output values. -// The input is on of the following: +// The input is one of the following: // - map[string]string // - map[string][]string // diff --git a/pkg/api/welcome_message.go b/pkg/api/welcome_message.go index 150603099cf..4ded83d5ca5 100644 --- a/pkg/api/welcome_message.go +++ b/pkg/api/welcome_message.go @@ -29,7 +29,7 @@ func (s *Service) getWelcomeMessageHandler(w http.ResponseWriter, r *http.Reques } func (s *Service) setWelcomeMessageHandler(w http.ResponseWriter, r *http.Request) { - logger := s.logger.WithName("post_wallet").Build() + logger := s.logger.WithName("post_welcome_message").Build() var data welcomeMessageRequest err := json.NewDecoder(r.Body).Decode(&data)