details to failed telegram send

This commit is contained in:
Umputun
2018-10-25 11:41:35 -05:00
parent f550438236
commit 3866d8e3b9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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
}