Skip to content

Conversation

@karlseguin
Copy link
Collaborator

Some sites have a lot of text/template or application/json, and it just adds noise to the logs.

Some sites have a lot of text/template or application/json, and it just adds
noise to the logs.
}
if (std.ascii.eqlIgnoreCase(script_type, "application/ld+json")) {
return;
}
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure I understand why you remove these kind?
The won't create more log warning then?

Copy link
Member

Choose a reason for hiding this comment

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

oh you remove the warning too 🤦 my bad.
What about using debug instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thought about it. On the fence.

On the one hand I thought: good to log in case there's a type we don't handle that we should (which is the intention behind the original code). On the other hand, some sites have a lot of text/template, and I felt the noise outweighed the maybe-one-day-it-will-be-useful

@krichprollsch krichprollsch merged commit 7d51da1 into main Aug 26, 2025
10 checks passed
@krichprollsch krichprollsch deleted the ignore_non_js_script_tags branch August 26, 2025 06:53
@github-actions github-actions bot locked and limited conversation to collaborators Aug 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants