添加警告log

This commit is contained in:
xiongziliang 2018-02-14 23:47:56 +08:00
parent b0a64d1e6f
commit 23560ac49b

View File

@ -74,6 +74,9 @@ API_EXPORT void API_CALL onAppExit(){
cleaner::Destory(); cleaner::Destory();
} }
API_EXPORT void API_CALL setGlobalOptionString(const char *key,const char *val){ API_EXPORT void API_CALL setGlobalOptionString(const char *key,const char *val){
if(mINI::Instance().find(key) == mINI::Instance().end()){
WarnL << "key:" << key << " not existed!";
}
mINI::Instance()[key] = val; mINI::Instance()[key] = val;
} }
API_EXPORT int API_CALL initHttpServer(unsigned short port){ API_EXPORT int API_CALL initHttpServer(unsigned short port){