Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Make NgxServerContext's log to the vhost specific logs #447

Closed
oschaaf opened this issue Jul 21, 2013 · 1 comment · Fixed by #448
Closed

Make NgxServerContext's log to the vhost specific logs #447

oschaaf opened this issue Jul 21, 2013 · 1 comment · Fixed by #448
Assignees

Comments

@oschaaf
Copy link
Member

oschaaf commented Jul 21, 2013

When a server{} block is specified in nginx.conf, that is currently not used by messages written through NgxServerContext's message handler. These still end up in the log file configured in nginx.conf at the highest level.

It would be less confusing if we respected the vhost logging configuration, and it might also be useful in the systemtests to be able to scan the vhost specific error log for unexpected (error) messages.

@oschaaf
Copy link
Member Author

oschaaf commented Jul 23, 2013

Fixed in 502a604

@oschaaf oschaaf closed this as completed Jul 23, 2013
morlovich pushed a commit to morlovich/ngx_pagespeed that referenced this issue Nov 25, 2013
This makes messages written via the NgxMessageHandler from the
NgxServerContext be written with the nginx error_log configuration
specified at the server{} level, if specified.

Fixes apache#447
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant