From cab02a79c5db0d234130f36e720928b6e9673176 Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 19 Oct 2024 22:28:05 +0200 Subject: [PATCH] fix: actually set Debug as extractor with --debug --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 605250e..54aad9a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -100,7 +100,7 @@ async fn main() -> Result<(), PostWomanError> { let env = Arc::new(config.env); for (name, mut endpoint) in config.route { if pattern.find(&name).is_some() { - if debug { endpoint.extract = None }; + if debug { endpoint.extract = Some(ext::StringOr::T(model::Extractor::Debug)) }; for i in 0..repeat { let suffix = if repeat > 1 { format!("#{} ", i+1)