From 83bc6bfea5c0231e11aec9cf21b40d6aa850336d Mon Sep 17 00:00:00 2001 From: otherview Date: Wed, 20 Sep 2023 16:35:54 +0100 Subject: [PATCH] Tweaks to OG --- tools/walletextension/userconn/user_conn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/walletextension/userconn/user_conn.go b/tools/walletextension/userconn/user_conn.go index 017f85c775..d43226a39b 100644 --- a/tools/walletextension/userconn/user_conn.go +++ b/tools/walletextension/userconn/user_conn.go @@ -90,7 +90,7 @@ func (h *userConnHTTP) WriteResponse(msg []byte) error { } func (h *userConnHTTP) HandleError(msg string) { - h.logger.Error(msg) + h.logger.Error(fmt.Sprintf("Handling HTTP user error - %s", msg))) httpLogAndSendErr(h.resp, msg) } @@ -134,7 +134,7 @@ func (w *userConnWS) WriteResponse(msg []byte) error { // HandleError logs and prints the error, and writes it to the websocket as a JSON object with a single key, "error". func (w *userConnWS) HandleError(msg string) { - w.logger.Error(msg) + w.logger.Error(fmt.Sprintf("Handling WS user error - %s", msg)) errMsg, err := json.Marshal(map[string]interface{}{ common.JSONKeyErr: msg,