Remove excessive Info level Logging
All checks were successful
Run Tests on Code / run-tests (push) Successful in 0s
All checks were successful
Run Tests on Code / run-tests (push) Successful in 0s
This commit is contained in:
parent
4f61905ba7
commit
4cb22e630e
2 changed files with 6 additions and 4 deletions
|
@ -199,9 +199,11 @@ async fn handle_series(
|
||||||
{
|
{
|
||||||
let read = data.read().await;
|
let read = data.read().await;
|
||||||
if read.post_history.check_for_post(series.slug.as_str(), post_part_info.as_string().as_str(), post_lemmy_info.title.as_str()) {
|
if read.post_history.check_for_post(series.slug.as_str(), post_part_info.as_string().as_str(), post_lemmy_info.title.as_str()) {
|
||||||
|
if !read.messages.contains(&Message::Info(format!("Skipping '{}' since already posted", post_lemmy_info.title))) {
|
||||||
drop(read);
|
drop(read);
|
||||||
let mut write = data.write().await;
|
let mut write = data.write().await;
|
||||||
write.messages.push(Message::Info(format!("Skipping '{}' since already posted", post_lemmy_info.title)));
|
write.messages.push(Message::Info(format!("Skipping '{}' since already posted", post_lemmy_info.title)));
|
||||||
|
};
|
||||||
post_list.remove(index);
|
post_list.remove(index);
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,7 @@ impl SharedData {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Display)]
|
#[derive(Clone, Debug, Display, PartialEq)]
|
||||||
pub(crate) enum Message {
|
pub(crate) enum Message {
|
||||||
Info(String),
|
Info(String),
|
||||||
Warning(String),
|
Warning(String),
|
||||||
|
|
Loading…
Reference in a new issue