Skip to content

Conversation

@prk-Jr
Copy link
Collaborator

@prk-Jr prk-Jr commented Jan 21, 2026

Standardize logging: Remove manual prefixes, add module target to logger format

Uses record.target() in the logger to automatically include module names in brackets, eliminating inconsistent manual prefixes that caused duplicate context like "[proxy] proxy: message".

closes #184

…ger format

Uses record.target() in the logger to automatically include module
names in brackets, eliminating inconsistent manual prefixes that
caused duplicate context like '[proxy] proxy: message'.
@prk-Jr prk-Jr self-assigned this Jan 21, 2026
@prk-Jr prk-Jr requested a review from aram356 January 21, 2026 16:38
let ct_for_log: &str = if ct_raw.is_empty() { "-" } else { &ct_raw };
log::info!(
"proxy(stream): origin response status={} ct={} cl={} accept={} url={}",
"stream: origin response status={} ct={} cl={} accept={} url={}",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛏️ Remove stream:

"[Gzip->None] Decompressed size: {} bytes",
decompressed.len()
);
log::info!("Gzip->None decompressed size: {} bytes", decompressed.len());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛏️ Change to Decompressed size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Standardize logging: Remove manual prefixes, add module target to logger format

4 participants