From aba153726ba4071136ffbe4a22fb2f19888fdb8a Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 30 Mar 2021 22:53:33 +0200 Subject: [PATCH] main: log when skipping blacklisted repo --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index bedcdf7..3856ee1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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; }