Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
outbound: Log and remove l5d-proxy-error from responses
When an outbound client reads a response from a remote peer that includes the l5d-proxy-error header, it doesn't communicate this error state in logs, and it (incorrectly, according to the comments) leaves the l5d-proxy-error header on the response. Furthermore, we currently _always_ emit a DEBUG log message "Remote proxy error", even when no error header is present. This change updates the error handler to: 1. Emit 'Remote proxy error' messages at INFO level when the header is validly set; 2. Strip these headers when they are logged (i.e. to eliminate ambiguity and potential for double-logging). Tests are updated to exercise the header removal logic.
- Loading branch information