fix: actually set Debug as extractor with --debug
This commit is contained in:
parent
2e520129a2
commit
cab02a79c5
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ async fn main() -> Result<(), PostWomanError> {
|
||||||
let env = Arc::new(config.env);
|
let env = Arc::new(config.env);
|
||||||
for (name, mut endpoint) in config.route {
|
for (name, mut endpoint) in config.route {
|
||||||
if pattern.find(&name).is_some() {
|
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 {
|
for i in 0..repeat {
|
||||||
let suffix = if repeat > 1 {
|
let suffix = if repeat > 1 {
|
||||||
format!("#{} ", i+1)
|
format!("#{} ", i+1)
|
||||||
|
|
Loading…
Reference in a new issue