fix: actually set Debug as extractor with --debug

This commit is contained in:
əlemi 2024-10-19 22:28:05 +02:00
parent 2e520129a2
commit cab02a79c5
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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)