mark repetitive logs as debug
This commit is contained in:
parent
3d99879a1b
commit
c9e6267941
|
@ -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> ) {
|
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 data = get_all_prs(repos.clone()).await;
|
||||||
let mut new_pulls: Vec<Pull> = vec![];
|
let mut new_pulls: Vec<Pull> = vec![];
|
||||||
|
|
|
@ -61,7 +61,7 @@ async fn main() {
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let (new_prs, new_data) = api::get_new_prs(prs.clone(), repos.clone()).await;
|
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));
|
thread::sleep(Duration::from_millis(time));
|
||||||
|
|
||||||
if new_prs.len() != 0 {
|
if new_prs.len() != 0 {
|
||||||
|
|
Loading…
Reference in New Issue