1
0
Fork 0

🔊 Fixed requests logs

This commit is contained in:
Maxim Lebedev 2018-10-12 14:37:39 +05:00
parent 6bce3139b8
commit f457d8ece7
No known key found for this signature in database
GPG Key ID: F8978F46FF0FFA4F
1 changed files with 5 additions and 5 deletions

View File

@ -2,10 +2,10 @@ package telegram
import (
"errors"
"log"
"path"
"strconv"
"github.com/kirillDanshin/dlog"
json "github.com/pquerna/ffjson/ffjson"
http "github.com/valyala/fasthttp"
)
@ -38,10 +38,10 @@ func (bot *Bot) request(dst []byte, method string) (response *Response, err erro
defer http.ReleaseResponse(resp)
err = bot.Client.Do(req, resp)
log.Ln("Request:")
log.D(req)
log.Ln("Response:")
log.D(resp)
dlog.Ln("Request:")
dlog.D(req)
dlog.Ln("Response:")
dlog.D(resp)
if err != nil {
return
}