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

it is impossible to set *_log: off; #134

Open
ser opened this issue Sep 24, 2016 · 2 comments
Open

it is impossible to set *_log: off; #134

ser opened this issue Sep 24, 2016 · 2 comments

Comments

@ser
Copy link
Contributor

ser commented Sep 24, 2016

It's not possible to switch off logging.

@ser
Copy link
Contributor Author

ser commented Sep 24, 2016

It's possible, just not documented, nginx_http_access_log: "off" does the trick.

@ser ser closed this as completed Sep 24, 2016
@ser
Copy link
Contributor Author

ser commented Sep 24, 2016

No, it is impossible to do that on "server" level. The workaround is to set access_log to /dev/null, but it's not correct and definitely it should be possible to set it to "off".

The code responsible for screwing things up is here:

access_log {{ (item.log_path | d(nginx_log_path)) + '/' + item.access_log | d(item.filename | d(item.name if item.name is string else item.name[0]) + '_access') }}.log;

@ser ser reopened this Sep 24, 2016
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

1 participant