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

Include more information in log messages #444

Open
edevil opened this issue Nov 4, 2013 · 1 comment
Open

Include more information in log messages #444

edevil opened this issue Nov 4, 2013 · 1 comment

Comments

@edevil
Copy link
Contributor

edevil commented Nov 4, 2013

Sometimes I get messages in the log (syslog) like these:

[uwsgi-http client_addr: XXX.XXX.XXX.XXX client_port: 5857] hr_write(): Broken pipe [plugins/http/http.c line 429]
IOError: write error

or

uwsgi_response_write_body_do() TIMEOUT !!!
IOError: write error

and when there are a lot of log messages it can be difficult to correlate them to the rest of the request processing. Would it be possible to include information like worker pid, worker id, some request id? I normally use the greenlet id as a "request id" and pass it with set_logvar but these log messages cannot be formatted.

Thanks.

@unbit
Copy link
Owner

unbit commented Nov 6, 2013

this is somewhat related to #57 my idea is that by default any uwsgi_log and uwsgi_error should report the UWSGI_REQUEST_ID (and the timestamp). In addition to this an option should allow to specify which additional request vars to report. This is something that should be ready pretty soon

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