Loading src/authdb.cpp +6 −0 Changes for src/authdb.cpp: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -63,6 +63,7 @@ namespace authdb { std::mutex g_wizzard; bool initalized=true; bool DEBUG=false; class AuthDB : public libhttppp::HttpEvent{ public: Loading Loading @@ -420,6 +421,7 @@ int main(int argc,char *argv[]){ cmdplus::CmdController cmd(cmdplus::CmdController::getInstance()); cmd.registerCmd("config",'c',true,"","Config Path"); cmd.registerCmd("debug",'d',false,"false","Config Path"); cmd.parseCmd(argc,argv); Loading @@ -446,7 +448,11 @@ int main(int argc,char *argv[]){ authdb::AuthDB authdb(backend,httpd.getServerSocket()); if(cmd.getCmdbyKey("debug")->getValue()=="true"){ authdb::DEBUG=true; authdb.threads=1; } authdb.runEventloop(); }catch(authdb::AuthBackendError &e){ std::cerr << e.what() << std::endl; Loading Loading
src/authdb.cpp +6 −0 Changes for src/authdb.cpp: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -63,6 +63,7 @@ namespace authdb { std::mutex g_wizzard; bool initalized=true; bool DEBUG=false; class AuthDB : public libhttppp::HttpEvent{ public: Loading Loading @@ -420,6 +421,7 @@ int main(int argc,char *argv[]){ cmdplus::CmdController cmd(cmdplus::CmdController::getInstance()); cmd.registerCmd("config",'c',true,"","Config Path"); cmd.registerCmd("debug",'d',false,"false","Config Path"); cmd.parseCmd(argc,argv); Loading @@ -446,7 +448,11 @@ int main(int argc,char *argv[]){ authdb::AuthDB authdb(backend,httpd.getServerSocket()); if(cmd.getCmdbyKey("debug")->getValue()=="true"){ authdb::DEBUG=true; authdb.threads=1; } authdb.runEventloop(); }catch(authdb::AuthBackendError &e){ std::cerr << e.what() << std::endl; Loading