[logging] correct the log level and region settings (#5749)

This commit is contained in:
Zhanglong Xia
2020-11-02 06:56:48 -08:00
committed by GitHub
parent 466ebf4d60
commit 78c6c90c6a
+1 -3
View File
@@ -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