From 630c5960b795506f3cf1ad84290769c547e7a2c1 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Fri, 1 Jun 2018 14:57:48 +0300 Subject: [PATCH] update request logging --- telegram.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/telegram.go b/telegram.go index 4b005b9..1d99646 100644 --- a/telegram.go +++ b/telegram.go @@ -153,7 +153,7 @@ func mgWebhookHandler(w http.ResponseWriter, r *http.Request) { } if config.Debug { - logger.Debugf("mgWebhookHandler: %v", string(bytes)) + logger.Debugf("mgWebhookHandler request: %v", string(bytes)) } var msg v1.WebhookRequest @@ -194,7 +194,7 @@ func mgWebhookHandler(w http.ResponseWriter, r *http.Request) { } if config.Debug { - logger.Debugf("mgWebhookHandler %v", msg) + logger.Debugf("mgWebhookHandler sent %v", msg) } w.WriteHeader(http.StatusOK) @@ -211,7 +211,7 @@ func mgWebhookHandler(w http.ResponseWriter, r *http.Request) { } if config.Debug { - logger.Debugf("mgWebhookHandler %v", msg) + logger.Debugf("mgWebhookHandler update %v", msg) } w.WriteHeader(http.StatusOK) @@ -228,7 +228,7 @@ func mgWebhookHandler(w http.ResponseWriter, r *http.Request) { } if config.Debug { - logger.Debugf("mgWebhookHandler %v", msg) + logger.Debugf("mgWebhookHandler delete %v", msg) } w.WriteHeader(http.StatusOK)