Update the router log truncator for new axum syntax.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -227,6 +227,6 @@ fn request_path_str<T>(request: &http::Request<T>) -> &str {
|
||||
|
||||
fn truncated_matched_path(path: &MatchedPath) -> &str {
|
||||
path.as_str()
|
||||
.rsplit_once(':')
|
||||
.rsplit_once('{')
|
||||
.map_or(path.as_str(), |path| path.0.strip_suffix('/').unwrap_or(path.0))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user