From ce3514f54149d6e5e1e78d3685085362fa173301 Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Fri, 21 Oct 2022 09:55:26 -0500 Subject: [PATCH] Log to GitLab when the job handler cannot be created This can happen due to e.g. configuration issues on the repo, so it makes sense to log it somewhere other than just the service logs. Signed-off-by: Ryan Gonzalez --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0638df0..4f85988 100644 --- a/src/main.rs +++ b/src/main.rs @@ -140,7 +140,7 @@ async fn main() { |job| async { ObsJobHandler::from_obs_config_in_job(job, HandlerOptions::default()).map_err( |err| { - error!("Failed to create new client: {:?}", err); + error!(gitlab.output = true, "Failed to handle new job: {:?}", err); }, ) },