diff --git a/src/client/src/tscSystem.c b/src/client/src/tscSystem.c index 132f8158fc91265f3e1181519aa2122250c664ca..1eddeacc6514356d7a45874c33e9132443a83eca 100644 --- a/src/client/src/tscSystem.c +++ b/src/client/src/tscSystem.c @@ -17,6 +17,7 @@ #include "taosmsg.h" #include "tref.h" #include "trpc.h" +#include "tnote.h" #include "tsystem.h" #include "ttimer.h" #include "tutil.h" @@ -102,6 +103,7 @@ void taos_init_imp(void) { taosReadGlobalCfg(); taosCheckGlobalCfg(); + taosInitNotes(); rpcInit(); tscDebug("starting to initialize TAOS client ..."); diff --git a/src/util/inc/tnote.h b/src/util/inc/tnote.h index b4c0c7501b71b844439acb24cfa875efcc104b75..7511b61f417c76b312faeb3da0855119658bdd68 100644 --- a/src/util/inc/tnote.h +++ b/src/util/inc/tnote.h @@ -52,7 +52,10 @@ void taosNotePrintBuffer(SNoteObj *pNote, char *buffer, int32_t len); 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 }