details to failed telegram send
This commit is contained in:
@@ -89,7 +89,7 @@ func (s *Service) do() {
|
||||
wg.Add(1)
|
||||
go func(d Destination) {
|
||||
if err := d.Send(s.ctx, c); err != nil {
|
||||
log.Printf("[WARN] failed to send to %s", d)
|
||||
log.Printf("[WARN] failed to send to %s, %s", d, err)
|
||||
}
|
||||
wg.Done()
|
||||
}(dest)
|
||||
|
||||
@@ -116,5 +116,5 @@ func (t *Telegram) Send(ctx context.Context, req request) error {
|
||||
}
|
||||
|
||||
func (t *Telegram) String() string {
|
||||
return "telegram-" + t.channelName
|
||||
return "telegram: " + t.channelName
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user