Skip to content

Replace built-in logformat referrer#2430

Open
yadij wants to merge 2 commits into
squid-cache:masterfrom
yadij:arc-logformat-2
Open

Replace built-in logformat referrer#2430
yadij wants to merge 2 commits into
squid-cache:masterfrom
yadij:arc-logformat-2

Conversation

@yadij

@yadij yadij commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@yadij

yadij commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

Implementing request from Alex: "we should not hard code log formats".
This format was previously implemented in code due to the inefficiency of assembling custom log format lines.

@rousskov rousskov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Amos: Implementing request from Alex: "we should not hard code log formats".

That was not a request. I do welcome this change (although not this PR -- we need to resolve the backlog problem before such PRs can become welcomed).

{
const char *referer = nullptr;
if (al->request)
referer = al->request->header.getStr(Http::HdrType::REFERER);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please disclose, in release notes, the functionality differences introduced by this PR. For example, AFAICT, Squid will now quote1 logged Referer header field values. If there are absolutely no formatting differences, please say so explicitly in the PR description.

Footnotes

  1. Here, "quote" is referring to Format::assemble() code associated with a true quote variable value.

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.

2 participants