fix(logging): fix missing fields in consolidated log line (#3684)

This commit is contained in:
Sampras Lopes
2024-02-16 18:12:25 +05:30
committed by GitHub
parent 39e2233982
commit 783fa0b0df
4 changed files with 47 additions and 15 deletions

View File

@ -143,7 +143,7 @@ where
Box::pin(
async move {
let response = response_fut.await;
logger::info!(golden_log_line = true);
router_env::tracing::Span::current().record("golden_log_line", true);
response
}
.instrument(
@ -153,7 +153,8 @@ where
merchant_id = Empty,
connector_name = Empty,
payment_method = Empty,
flow = "UNKNOWN"
flow = "UNKNOWN",
golden_log_line = Empty
)
.or_current(),
),