From 23560ac49b68cd7551a0a953e8f3c1f42dfe8b08 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Wed, 14 Feb 2018 23:47:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AD=A6=E5=91=8Alog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- c_wrapper/src/common.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/c_wrapper/src/common.cpp b/c_wrapper/src/common.cpp index fe841ad6..a90e1369 100755 --- a/c_wrapper/src/common.cpp +++ b/c_wrapper/src/common.cpp @@ -74,6 +74,9 @@ API_EXPORT void API_CALL onAppExit(){ cleaner::Destory(); } 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; } API_EXPORT int API_CALL initHttpServer(unsigned short port){