🔊 Fixed requests logs
This commit is contained in:
parent
6bce3139b8
commit
f457d8ece7
10
request.go
10
request.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue