From b21f78d3206fdd72746ff255802adabc8c0bb26e Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Tue, 8 Dec 2020 11:10:04 +0800 Subject: [PATCH] TD-2371 --- src/client/src/tscSystem.c | 2 ++ src/util/inc/tnote.h | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/client/src/tscSystem.c b/src/client/src/tscSystem.c index 132f8158fc..1eddeacc65 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 b4c0c7501b..7511b61f41 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 } -- GitLab