From: Remi Gacogne Date: Tue, 3 Dec 2019 15:34:52 +0000 (+0100) Subject: dnsdist: Add missing exception message in KVS error X-Git-Tag: auth-4.3.0-alpha1~9^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=470f3339035c9801585d35ff423d6051d9ffbc5b;p=thirdparty%2Fpdns.git dnsdist: Add missing exception message in KVS error --- diff --git a/pdns/dnsdistdist/dnsdist-kvs.cc b/pdns/dnsdistdist/dnsdist-kvs.cc index 97e4cb301a..e4cc36b506 100644 --- a/pdns/dnsdistdist/dnsdist-kvs.cc +++ b/pdns/dnsdistdist/dnsdist-kvs.cc @@ -198,7 +198,7 @@ bool CDBKVStore::getValue(const std::string& key, std::string& value) } } catch(const std::exception& e) { - warnlog("Error while looking up key '%s' from CDB file '%s': %s", key, d_fname); + warnlog("Error while looking up key '%s' from CDB file '%s': %s", key, d_fname, e.what()); } return false; } @@ -222,7 +222,7 @@ bool CDBKVStore::keyExists(const std::string& key) } } catch(const std::exception& e) { - warnlog("Error while looking up key '%s' from CDB file '%s': %s", key, d_fname); + warnlog("Error while looking up key '%s' from CDB file '%s': %s", key, d_fname, e.what()); } return false; }