More logging because I hate my life
All checks were successful
Rust / check (push) Successful in 49s
All checks were successful
Rust / check (push) Successful in 49s
This commit is contained in:
parent
3954562ca5
commit
c3ae0b6f6d
@ -163,7 +163,7 @@ pub async fn deer(ctx: Context<'_>) -> Result<(), Error> {
|
||||
let subreddit = Subreddit::new("deer");
|
||||
let options = FeedOption::new().period(TimePeriod::ThisYear);
|
||||
trace!("Created subreddit and options, about to poll for hot posts...");
|
||||
let hot = subreddit.hot(50, Some(options)).await?;
|
||||
let hot = subreddit.hot(50, Some(options)).await.inspect_err(|e| {error!("Error getting hot posts: {}", e)})?;
|
||||
trace!("Got hot post collection...");
|
||||
let chosen_post = {
|
||||
let mut rng = rand::rng();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user