remove logging redundancy

pull/447/head
Demian 3 years ago
parent 35526d3d53
commit 73e51e50e6

@ -101,7 +101,6 @@ func (p *LongPoller) Poll(b *Bot, dest chan Update, stop chan struct{}) {
updates, err := b.getUpdates(p.LastUpdateID+1, p.Limit, p.Timeout, p.AllowedUpdates)
if err != nil {
b.debug(err)
b.debug(ErrCouldNotUpdate)
continue
}

@ -4,15 +4,15 @@ import (
"bytes"
"encoding/json"
"fmt"
"github.com/pkg/errors"
"log"
"net/http"
"strconv"
"github.com/pkg/errors"
)
func (b *Bot) debug(err error) {
err = errors.WithStack(err)
log.Printf("%+v\n", err)
log.Println(err)
}
func (b *Bot) deferDebug() {

Loading…
Cancel
Save