-
Notifications
You must be signed in to change notification settings - Fork 103
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
Fix #903: add logging for all error responses. #952
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to merge after the small addition
tempesta_fw/http.c
Outdated
tfw_http_send_resp(TfwHttpReq *req, int status, const char *reason) | ||
{ | ||
if (!(tfw_blk_flags & TFW_BLK_ERR_NOLOG)) | ||
TFW_WARN_ADDR(reason, &req->conn->peer->addr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the status
to the warning message, to get something like:
[tempesta] Warning: request dropped: processing error, status 502: ::ffff:c0a8:6401
For more verbose logging we have #537, but now we still need something more administration-friendly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected.
No description provided.