main: log when skipping blacklisted repo

This commit is contained in:
Antoine Martin 2021-03-30 22:53:33 +02:00
parent 422024d919
commit aba153726b

View file

@ -11,7 +11,7 @@ use std::thread;
use anyhow::Context;
use clap::{App, Arg};
use log::error;
use log::{error, info};
use rocket::{http::Status, post, routes, State};
mod gitea;
@ -40,6 +40,10 @@ fn gitea_webhook(
.iter()
.any(|re| re.is_match(&payload.repository.full_name))
{
info!(
"Ignoring webhook for repo {} which is blacklisted",
payload.repository.full_name
);
return Status::Ok;
}