From 470f3339035c9801585d35ff423d6051d9ffbc5b Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 3 Dec 2019 16:34:52 +0100 Subject: [PATCH] dnsdist: Add missing exception message in KVS error --- pdns/dnsdistdist/dnsdist-kvs.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.2