mirror of
https://github.com/YGGverse/rssto.git
synced 2026-03-31 09:05:29 +00:00
warn on feed update failure instead of panic
This commit is contained in:
parent
f7f6cb8530
commit
2dccaf9d35
1 changed files with 4 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ use argument::Argument;
|
|||
use chrono::{DateTime, Local};
|
||||
use clap::Parser;
|
||||
use config::{Config, Feed};
|
||||
use log::{debug, info};
|
||||
use log::{debug, info, warn};
|
||||
use std::{
|
||||
env::var,
|
||||
fs::{File, create_dir_all, read_to_string},
|
||||
|
|
@ -40,7 +40,9 @@ fn main() -> Result<()> {
|
|||
|
||||
for feed in &config.feed {
|
||||
debug!("Update `{}`...", feed.url);
|
||||
crawl(feed)?
|
||||
if let Err(e) = crawl(feed) {
|
||||
warn!("Feed `{}` update failed: `{e}`", feed.url)
|
||||
}
|
||||
}
|
||||
|
||||
debug!("Crawl queue completed");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue