Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
log: initialize logging earlier
It turns out to be possible to initialize logging earlier by grabbing the log from a global ngx_cycle structure. This makes us start logging earlier, yet loses the "No threading detected ..." messages both from stderr and in error.log when nginx initially starts. With this change, these messages will now be logged as we start logging earlier: " flush . " These originate from SystemCachePath::CacheKey which appends newlines to the key, and the resulting cache key ends up being logged. We might want to change that, because the resulting lines in error.log look weird and might raise questions. Fixes #895
- Loading branch information
Showing with 7 additions and 5 deletions.