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

wrong log type? #91

Open
Zoey2936 opened this issue Dec 17, 2024 · 1 comment
Open

wrong log type? #91

Zoey2936 opened this issue Dec 17, 2024 · 1 comment

Comments

@Zoey2936
Copy link

When starting nginx there is always logged:
[error] 1594#1594: [lua] crowdsec.lua:104: init(): APPSEC is enabled on '127.0.0.1:7422'
But I don't see what the error is, but it seems to be wanted:

ngx.log(ngx.ERR, "APPSEC is enabled on '" .. runtime.conf["APPSEC_HOST"] .. "'")

maybe this should be changed to info or notice or something like this?

@LaurenceJJones
Copy link
Contributor

maybe this should be changed to info or notice or something like this?

Yeah we agree, I believe though this was chosen because by default when we tested it anything lower than error does not show by default. (maybe this has changed or something we tested was wrong)

But definitely the log level does not match the message.

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

No branches or pull requests

2 participants