]> granicus.if.org Git - pdns/commitdiff
only emit helpful gsqlite3 warning when actually trying to load gsqlite3, confusing...
authorBert Hubert <bert.hubert@netherlabs.nl>
Wed, 3 Oct 2012 18:28:15 +0000 (18:28 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Wed, 3 Oct 2012 18:28:15 +0000 (18:28 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2736 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/ueberbackend.cc

index 0c925e6e5381ccc06ce18c7fadda5079687b896b..9e8f2e890cb7d2a7e982a8e699db0bc263e7f69d 100644 (file)
@@ -72,7 +72,8 @@ bool UeberBackend::loadmodule(const string &name)
   
   if(dlib == NULL) {
     L<<Logger::Warning <<"Unable to load module '"<<name<<"': "<<dlerror() << endl; 
-    L<<Logger::Warning <<"Trying to load gsqlite3backend? Make sure pdns_server was compiled with sqlite3!" <<endl;
+    if(name.find("gsqlite3")!=string::npos)
+      L<<Logger::Warning <<"Trying to load gsqlite3backend? Make sure pdns_server was compiled with sqlite3!" <<endl;
     return false;
   }