From 6b0cfadd8b877d6e43a7b610898c3f606a11c4bd Mon Sep 17 00:00:00 2001 From: Dmitriy Date: Wed, 12 Jan 2022 13:55:22 +0200 Subject: [PATCH] Add verbose error on proxy upstream dialing (#355) Add verbose error on proxy upstream dialing. --- CHANGELOG.md | 1 + proxy.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d806bd20..d4b03afd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ * Verify git tag on release (#347, @miry) * Fix MacOS 12 tests for go17 with -race flag (#351, @strech) * Rename `testing/` and `bin/` folders (#354, @strech) +* Added verbose error on proxy upstream dialing (#355, @f-dg) # [2.3.0] - 2021-12-23 diff --git a/proxy.go b/proxy.go index c442e88d..e9104469 100644 --- a/proxy.go +++ b/proxy.go @@ -184,7 +184,7 @@ func (proxy *Proxy) server() { "client": client.RemoteAddr(), "proxy": proxy.Listen, "upstream": proxy.Upstream, - }).Error("Unable to open connection to upstream") + }).Error("Unable to open connection to upstream: " + err.Error()) client.Close() continue }