Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua::run: Move logging of str parameter to higher log level. #3240

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

frozenice
Copy link
Contributor

what

This silences a spammy debug log output.

why

When running with the debug log enabled, it spams a useless line for every request, when using a Lua script. It can't be disabled / filtered, because it's logged with the lowest level.

[172433088121.621649] [/something/] [1]
[17243308919.222807] [/] [1]
[17243308919.222807] [/] [1]
[172433090139.589739] [/] [1]

I don't know if 9 is the appropriate level. Alternatively this line could be removed altogether.

references

The line in question was introduced in Nov 2019.

frozenice referenced this pull request Aug 26, 2024
pass FILES_TMPNAMES variable to lua engine Fixed Lua engine
should also be aware of the variable and pass it to the target
lua script main function
Copy link

sonarcloud bot commented Aug 26, 2024

Copy link

@phenyll phenyll left a comment

Choose a reason for hiding this comment

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

seems legit

Copy link
Member

@airween airween left a comment

Choose a reason for hiding this comment

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

LGTM

@airween
Copy link
Member

airween commented Aug 26, 2024

Hi @frozenice,

thanks for your first PR!

I would wait for 1-2 days if anyone wants to comment this PR. But it's good to me so if there won't be any remarks I'll merge this soon.

@airween airween added the 3.x Related to ModSecurity version 3.x label Aug 26, 2024
@airween airween self-assigned this Aug 26, 2024
@airween
Copy link
Member

airween commented Aug 28, 2024

Okay, no other feedback, merging now - thanks again!

@airween airween merged commit 9403cf6 into owasp-modsecurity:v3/master Aug 28, 2024
49 checks passed
airween added a commit to airween/ModSecurity that referenced this pull request Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Related to ModSecurity version 3.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants