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

log: initialize logging earlier #1071

Merged
merged 1 commit into from
Dec 17, 2015

Conversation

oschaaf
Copy link
Member

@oschaaf oschaaf commented Dec 11, 2015

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 (on the mps side), because the resulting
lines in error.log look weird and might raise questions.

Fixes #895

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
@jeffkaufman
Copy link
Contributor

LGTM

Looks good. I'll fix the cache path key issue having newlines on the mps side.

jeffkaufman added a commit that referenced this pull request Dec 17, 2015
…bug-noise

log: initialize logging earlier
@jeffkaufman jeffkaufman merged commit 7ee1efe into trunk-tracking Dec 17, 2015
@jeffkaufman jeffkaufman deleted the oschaaf-trunk-tracking-log-debug-noise branch December 17, 2015 20:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants