openresty / lua-resty-upstream-healthcheck

Health Checker for Nginx Upstream Servers in Pure Lua
515 stars 134 forks source link

PR: add upstream name to log message to distinguish among multiple upstreams with same server #71

Open ecc256 opened 4 years ago

ecc256 commented 4 years ago

Would it be possible to add upstream name to log message to distinguish among multiple upstreams with same server. Namely, change current message from

healthcheck: failed to receive status line from 10.0.0.1:80:

to something like

healthcheck: failed to receive status line from 10.0.0.1:80: for upstream backend

Might be easier to add error format string as healthcheck field se we can set to log the fields we need?

This is follow up to the issue.

Thank you