From 78c6c90c6ac3d7bf3641a373631412c63e91d8c6 Mon Sep 17 00:00:00 2001 From: Zhanglong Xia Date: Mon, 2 Nov 2020 22:56:48 +0800 Subject: [PATCH] [logging] correct the log level and region settings (#5749) --- src/core/common/logging.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/common/logging.cpp b/src/core/common/logging.cpp index a582726fe..ec0fe0406 100644 --- a/src/core/common/logging.cpp +++ b/src/core/common/logging.cpp @@ -96,9 +96,7 @@ static void Log(otLogLevel aLogLevel, break; } -#if OPENTHREAD_CONFIG_LOG_PREPEND_REGION - IgnoreError(logString.Append("[%s]", levelStr)); -#endif + IgnoreError(logString.Append("%s", levelStr)); } #endif // OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL