1
0
mirror of synced 2024-11-25 13:16:02 +03:00

update request logging

This commit is contained in:
Alex Lushpai 2018-06-01 14:57:48 +03:00
parent 942dca0687
commit 630c5960b7

View File

@ -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)