]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Add missing exception message in KVS error 8604/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 3 Dec 2019 15:34:52 +0000 (16:34 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 3 Dec 2019 15:34:52 +0000 (16:34 +0100)
pdns/dnsdistdist/dnsdist-kvs.cc

index 97e4cb301a42d477c2b04d4f8deb6483466c7af9..e4cc36b506087f457e72ce4c7be53473313600e2 100644 (file)
@@ -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;
 }