mark repetitive logs as debug

This commit is contained in:
b1ek 2023-08-05 04:00:56 +10:00
parent 3d99879a1b
commit c9e6267941
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ pub async fn get_all_prs(repos: Vec<Repo>) -> Vec<Pull> {
*/
pub async fn get_new_prs(old: Vec<Pull>, repos: Vec<Repo>) -> ( Vec<Pull>, Vec<Pull> ) {
log::info!("Getting all PRs now");
log::debug!("Getting all PRs now");
let data = get_all_prs(repos.clone()).await;
let mut new_pulls: Vec<Pull> = vec![];

View File

@ -61,7 +61,7 @@ async fn main() {
loop {
let (new_prs, new_data) = api::get_new_prs(prs.clone(), repos.clone()).await;
log::info!("Found {} new PRs", new_prs.len());
log::debug!("Found {} new PRs", new_prs.len());
thread::sleep(Duration::from_millis(time));
if new_prs.len() != 0 {