Skip to content

Commit 3aa2bc2

Browse files
committed
[api] don't log path as operation id
1 parent bc1e5c6 commit 3aa2bc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/log.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub async fn middleware_log<E: Endpoint>(next: E, request: Request) -> Result<Re
7777
let operation_id = response
7878
.data::<OperationId>()
7979
.map(|operation_id| operation_id.0)
80-
.unwrap_or(&log.path);
80+
.unwrap_or("operation_id_not_set");
8181

8282
// Log response status per-endpoint + method.
8383
HISTOGRAM

0 commit comments

Comments
 (0)