yttopodcast: only print errors on genfeed
Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
parent
2bd7cd6063
commit
b23d82376c
@ -1,20 +1,21 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"flag"
|
"errors"
|
||||||
"fmt"
|
"flag"
|
||||||
"io"
|
"fmt"
|
||||||
"log"
|
"io"
|
||||||
"net/http"
|
"log"
|
||||||
"os"
|
"net/http"
|
||||||
"os/signal"
|
"os"
|
||||||
"strings"
|
"os/signal"
|
||||||
"time"
|
"strings"
|
||||||
|
"time"
|
||||||
|
|
||||||
"gitea.hbanafa.com/hesham/yttopodcast/bouncer"
|
"gitea.hbanafa.com/hesham/yttopodcast/bouncer"
|
||||||
"gitea.hbanafa.com/hesham/yttopodcast/dylinkprovider"
|
"gitea.hbanafa.com/hesham/yttopodcast/dylinkprovider"
|
||||||
"gitea.hbanafa.com/hesham/yttopodcast/feed"
|
"gitea.hbanafa.com/hesham/yttopodcast/feed"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -134,10 +135,9 @@ func main() {
|
|||||||
|
|
||||||
func genFeeds(ids []string) {
|
func genFeeds(ids []string) {
|
||||||
for _, id := range ids {
|
for _, id := range ids {
|
||||||
l.Printf("[feed] generating feed for %s\n", id)
|
|
||||||
err := genFeed(id)
|
err := genFeed(id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
l.Printf(err.Error())
|
l.Printf(fmt.Errorf("failed to generate feed for %s %v:", id, err).Error())
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user