31 lines
931 B
Diff
31 lines
931 B
Diff
From bcefda18f27ea4c427ad11ac1ae373e503787fca Mon Sep 17 00:00:00 2001
|
|
From: tian2020 <tian_hang@hoperun.com>
|
|
Date: Thu, 15 Jun 2023 10:52:07 +0800
|
|
Subject: [PATCH 3/3] feat set priv false
|
|
|
|
---
|
|
frameworks/libhilog/hilog_printf.cpp | 7 +------
|
|
1 file changed, 1 insertion(+), 6 deletions(-)
|
|
|
|
diff --git a/frameworks/libhilog/hilog_printf.cpp b/frameworks/libhilog/hilog_printf.cpp
|
|
index 1316128..ccfef1d 100644
|
|
--- a/frameworks/libhilog/hilog_printf.cpp
|
|
+++ b/frameworks/libhilog/hilog_printf.cpp
|
|
@@ -219,12 +219,7 @@ int HiLogPrintArgs(const LogType type, const LogLevel level, const unsigned int
|
|
}
|
|
|
|
/* format log string */
|
|
-#if not (defined( __WINDOWS__ ) || defined( __MAC__ ) || defined( __LINUX__ ))
|
|
- bool debug = IsDebugOn();
|
|
- bool priv = (!debug) && IsPrivateSwitchOn();
|
|
-#else
|
|
- bool priv = true;
|
|
-#endif
|
|
+ bool priv = false;
|
|
|
|
#ifdef __clang__
|
|
/* code specific to clang compiler */
|
|
--
|
|
2.33.0
|
|
|