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

Fix #903: add logging for all error responses. #952

Merged
merged 9 commits into from
Mar 19, 2018
Merged

Conversation

aleksostapenko
Copy link
Contributor

No description provided.

Copy link
Contributor

@krizhanovsky krizhanovsky left a 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

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);
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected.

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

Successfully merging this pull request may close these issues.

3 participants