This commit is contained in:
Shengliang Guan 2020-12-08 11:10:04 +08:00
parent c3a7a9576d
commit b21f78d320
2 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,7 @@
#include "taosmsg.h" #include "taosmsg.h"
#include "tref.h" #include "tref.h"
#include "trpc.h" #include "trpc.h"
#include "tnote.h"
#include "tsystem.h" #include "tsystem.h"
#include "ttimer.h" #include "ttimer.h"
#include "tutil.h" #include "tutil.h"
@ -102,6 +103,7 @@ void taos_init_imp(void) {
taosReadGlobalCfg(); taosReadGlobalCfg();
taosCheckGlobalCfg(); taosCheckGlobalCfg();
taosInitNotes();
rpcInit(); rpcInit();
tscDebug("starting to initialize TAOS client ..."); tscDebug("starting to initialize TAOS client ...");

View File

@ -52,7 +52,10 @@ void taosNotePrintBuffer(SNoteObj *pNote, char *buffer, int32_t len);
taosNotePrint(&tsTscNote, __VA_ARGS__); \ taosNotePrint(&tsTscNote, __VA_ARGS__); \
} }
#define nInfo(buffer, len) taosNotePrintBuffer(&tsInfoNote, buffer, len); #define nInfo(buffer, len) \
if (tscEmbedded == 1) { \
taosNotePrintBuffer(&tsInfoNote, buffer, len); \
}
#ifdef __cplusplus #ifdef __cplusplus
} }