Skip to content

Commit 3bc3f20

Browse files
committed
util: remove logging redundancy
1 parent 7d97235 commit 3bc3f20

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

poller.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ func (p *LongPoller) Poll(b *Bot, dest chan Update, stop chan struct{}) {
100100
updates, err := b.getUpdates(p.LastUpdateID+1, p.Limit, p.Timeout, p.AllowedUpdates)
101101
if err != nil {
102102
b.debug(err)
103-
b.debug(ErrCouldNotUpdate)
104103
continue
105104
}
106105

util.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ import (
1111
)
1212

1313
func (b *Bot) debug(err error) {
14-
err = errors.WithStack(err)
1514
if b.reporter != nil {
1615
b.reporter(err)
1716
} else {
18-
log.Printf("%+v\n", err)
17+
log.Println(err)
1918
}
2019
}
2120

0 commit comments

Comments
 (0)