]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/signingpipe.cc
dnsdist: Add HTTPStatusAction to return a specific HTTP response
[thirdparty/pdns.git] / pdns / signingpipe.cc
index 2f8a2acd6737ee33e3caaa2b16ef5576231c3242..6c98dd54c62b3da241c5eca1596ed4397871f16b 100644 (file)
@@ -51,7 +51,7 @@ try {
   return nullptr;
 }
 catch(...) {
-  L<<Logger::Error<<"Unknown exception in signing thread occurred"<<endl;
+  g_log<<Logger::Error<<"Unknown exception in signing thread occurred"<<endl;
   return nullptr;
 }
 
@@ -270,8 +270,8 @@ unsigned int ChunkedSigningPipe::getReady() const
 void ChunkedSigningPipe::worker(int fd)
 try
 {
-  DNSSECKeeper dk;
   UeberBackend db("key-only");
+  DNSSECKeeper dk(&db);
   
   chunk_t* chunk = nullptr;
   int res;
@@ -303,12 +303,12 @@ try
 }
 catch(const PDNSException& pe)
 {
-  L<<Logger::Error<<"Signing thread died because of PDNSException: "<<pe.reason<<endl;
+  g_log<<Logger::Error<<"Signing thread died because of PDNSException: "<<pe.reason<<endl;
   close(fd);
 }
 catch(const std::exception& e)
 {
-  L<<Logger::Error<<"Signing thread died because of std::exception: "<<e.what()<<endl;
+  g_log<<Logger::Error<<"Signing thread died because of std::exception: "<<e.what()<<endl;
   close(fd);
 }