diff options
-rw-r--r-- | app/app.go | 3 | ||||
-rw-r--r-- | templates/telegram.gotmpl | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -3,6 +3,7 @@ package app import ( "bytes" "context" + "log/slog" "os" "text/template" "time" @@ -44,7 +45,7 @@ func (a *App) Run(ctx context.Context) error { return nil case <-ticker.C: if err := a.iteration(); err != nil { - return err + slog.ErrorContext(ctx, "failed iteration", slog.Any("error", err)) } } } diff --git a/templates/telegram.gotmpl b/templates/telegram.gotmpl index 9e2b91a..7523fa4 100644 --- a/templates/telegram.gotmpl +++ b/templates/telegram.gotmpl @@ -2,4 +2,6 @@ <b>Новый пост в блоге Уголок NeonXP:</b> <a href="{{.Link}}">{{.Title}}</a> + +Отправлено через <a href="https://gitrepo.ru/neonxp/rss2world">rss2world</a> {{end}}
\ No newline at end of file |