From 0c8e7c5841f0375e734769a6444f35e78b920e22 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 5 Feb 2016 14:49:39 +0100 Subject: [PATCH] dnsdist: Log webserver binding errors even in client mode Fixes #3340. --- pdns/dnsdist-lua.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 1a6e99fd45..9df0b5b670 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -941,6 +941,7 @@ vector> setupLua(bool client, const std::string& confi launch(); } catch(std::exception& e) { + g_outputBuffer="Unable to bind to webserver socket on " + local.toStringWithPort() + ": " + e.what(); errlog("Unable to bind to webserver socket on %s: %s", local.toStringWithPort(), e.what()); } @@ -970,6 +971,7 @@ vector> setupLua(bool client, const std::string& confi } catch(std::exception& e) { + g_outputBuffer="Unable to bind to control socket on " + local.toStringWithPort() + ": " + e.what(); errlog("Unable to bind to control socket on %s: %s", local.toStringWithPort(), e.what()); } }); -- 2.47.2