src/api_schema/router.rs: disable debug println

This commit is contained in:
Dietmar Maurer 2019-05-29 09:42:16 +02:00
parent a42d1f55c3
commit 4ae6551c78
1 changed files with 2 additions and 2 deletions

View File

@ -292,12 +292,12 @@ impl Router {
SubRoute::None => {}, SubRoute::None => {},
SubRoute::Hash(ref dirmap) => { SubRoute::Hash(ref dirmap) => {
if let Some(ref router) = dirmap.get(dir) { if let Some(ref router) = dirmap.get(dir) {
println!("FOUND SUBDIR {}", dir); //println!("FOUND SUBDIR {}", dir);
return router.find_route(rest, uri_param); return router.find_route(rest, uri_param);
} }
} }
SubRoute::MatchAll { ref router, ref param_name } => { SubRoute::MatchAll { ref router, ref param_name } => {
println!("URI PARAM {} = {}", param_name, dir); // fixme: store somewhere //println!("URI PARAM {} = {}", param_name, dir); // fixme: store somewhere
uri_param.insert(param_name.clone(), dir.into()); uri_param.insert(param_name.clone(), dir.into());
return router.find_route(rest, uri_param); return router.find_route(rest, uri_param);
}, },