fix: log output for tsim and other apps (#30210)

This commit is contained in:
Kaili Xu 2025-03-17 22:38:49 +08:00 committed by GitHub
parent a2fd1ee68f
commit 094836daea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -754,7 +754,11 @@ static inline void taosPrintLogImp(ELogLevel level, int32_t dflag, const char *b
int fd = 0; int fd = 0;
if (tsLogObj.outputType == LOG_OUTPUT_FILE) { if (tsLogObj.outputType == LOG_OUTPUT_FILE) {
#ifndef TAOSD_INTEGRATED
if (dflag & DEBUG_SCREEN) fd = 1;
#else
if ((dflag & DEBUG_SCREEN) && tsLogEmbedded) fd = 1; if ((dflag & DEBUG_SCREEN) && tsLogEmbedded) fd = 1;
#endif
} else if (tsLogObj.outputType == LOG_OUTPUT_STDOUT) { } else if (tsLogObj.outputType == LOG_OUTPUT_STDOUT) {
fd = 1; fd = 1;
} else if (tsLogObj.outputType == LOG_OUTPUT_STDERR) { } else if (tsLogObj.outputType == LOG_OUTPUT_STDERR) {