Hiding Privacy Logs for LUX 24/201724/1
authorsamanway-dey <samanway-dey@samsung.com>
Thu, 21 Feb 2019 16:26:14 +0000 (21:56 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 19 Mar 2019 05:03:25 +0000 (14:03 +0900)
Changing INFO level private log to INFO_PRIVATE level
for LUX PRA.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/433
(cherry picked from b1e404691b0293404dcc4bd51c94ea029f885a87)

Change-Id: I91a33553988de53d228c0e6b9179d212c1e87b4f
Signed-off-by: samanway-dey <samanway-dey@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
packaging/iotivity.spec
resource/csdk/connectivity/src/adapter_util/caadapterutils.c
resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient.c
resource/csdk/connectivity/src/camessagehandler.c [changed mode: 0755->0644]
resource/csdk/logger/include/logger.h
resource/csdk/stack/src/ocresource.c [changed mode: 0755->0644]
tools/tizen/iotivity-vd-tv-es-tizen30.spec
tools/tizen/iotivity-vd-tv-tizen30.spec
tools/tizen/iotivity.spec

index 764c963..d09744a 100755 (executable)
@@ -35,6 +35,7 @@ Source1002: %{name}-test.manifest
 # For Example
 %if %{RELEASE} == "True"
 %define build_mode release
+%define log_level INFO
 %else
 %define build_mode debug
 %endif
@@ -186,6 +187,7 @@ scons %{JOB} --prefix=%{_prefix} \
     BLE_TIZEN_30=%{BLE_TIZEN_30} \
     DISABLE_BLE_SERVER=%{DISABLE_BLE_SERVER} \
     MULTIPLE_OWNER=%{MULTIPLE_OWNER} \
+    LOG_LEVEL=%{log_level} \
     #eol
 
 %install
index 762949c..2b837b0 100644 (file)
@@ -379,7 +379,7 @@ void CALogSendStateInfo(CATransportAdapter_t adapter,
     }
 
     CALogAdapterTypeInfo(adapter);
-    OIC_LOG_V(INFO, ANALYZER_TAG, "Address = [%s]:[%d]", addr, port);
+    OIC_LOG_V(INFO_PRIVATE, ANALYZER_TAG, "Address = [%s]:[%d]", addr, port);
     OIC_LOG(DEBUG, ANALYZER_TAG, "=================================================");
 
     // samsung log
index b89616e..084ea7d 100644 (file)
@@ -338,7 +338,7 @@ void CALEGattConnectionStateChanged(bool connected, const char *remoteAddress)
         if (CA_STATUS_OK != CAGetLEServerInfo(g_LEServerList, remoteAddress, &serverInfo))
         {
             oc_mutex_unlock(g_LEServerListMutex);
-            OIC_LOG_V(ERROR, TAG, "Could not get server info for [%s]", remoteAddress);
+            OIC_LOG_V(ERROR, TAG, "Could not get server info!");
             return;
         }
 
old mode 100755 (executable)
new mode 100644 (file)
index ebd322b..882ddd4
@@ -1673,7 +1673,7 @@ static void CALogPDUInfo(const CAData_t *data, const coap_pdu_t *pdu)
         OIC_LOG_BUFFER(INFO, ANALYZER_TAG, (const uint8_t *) info->token, info->tokenLength);
         OIC_TRACE_BUFFER("OIC_CA_MSG_HANDLE:CALogPDUInfo:token",
                          (const uint8_t *) info->token, info->tokenLength);
-        OIC_LOG_V(INFO, ANALYZER_TAG, "Res URI = [%s]", info->resourceUri);
+        OIC_LOG_V(INFO_PRIVATE, ANALYZER_TAG, "Res URI = [%s]", info->resourceUri);
         OIC_TRACE_MARK(%s:CALogPDUInfo:uri:%s, TAG, info->resourceUri);
 
         if (CA_FORMAT_APPLICATION_CBOR == info->payloadFormat)
index af95bc8..3444454 100644 (file)
@@ -67,8 +67,8 @@ extern "C"
 // Log levels
 #ifdef __TIZEN__
 typedef enum {
-    DEBUG = DLOG_INFO,    // DLOG_INFO : 4
-    INFO = DLOG_INFO,
+    DEBUG = DLOG_DEBUG,   // DLOG_DEBUG : 3
+    INFO = DLOG_INFO,     // DLOG_INFO  : 4
     WARNING = DLOG_WARN,  // DLOG_WARN : 5
     ERROR = DLOG_ERROR,   // DLOG_ERROR : 6
     FATAL = DLOG_ERROR,
old mode 100755 (executable)
new mode 100644 (file)
index 622f43d..7ffdcc1
@@ -160,7 +160,7 @@ OCStackResult ExtractFiltersFromQuery(const char *query, char **filterOne, char
         return OC_STACK_NO_MEMORY;
     }
 
-    OIC_LOG_V(INFO, TAG, "Extracting params from %s", queryDup);
+    OIC_LOG_V(INFO_PRIVATE, TAG, "Extracting params from %s", queryDup);
 
     OCStackResult eCode = OC_STACK_INVALID_QUERY;
     if (strnlen(queryDup, MAX_QUERY_LENGTH) >= MAX_QUERY_LENGTH)
index 97da3c7..d97a122 100644 (file)
@@ -35,6 +35,7 @@ Source1002: %{name}-test.manifest
 # For Example
 %if %{RELEASE} == "True"
 %define build_mode release
+%define log_level INFO
 %else
 %define build_mode debug
 %endif
@@ -184,6 +185,7 @@ scons %{JOB} --prefix=%{_prefix} \
     BLE_TIZEN_30=%{BLE_TIZEN_30} \
     DISABLE_BLE_SERVER=%{DISABLE_BLE_SERVER} \
     MULTIPLE_OWNER=%{MULTIPLE_OWNER} \
+    LOG_LEVEL=%{log_level} \
     #eol
 
 %install
index 8c6bd80..ce7f628 100644 (file)
@@ -35,6 +35,7 @@ Source1002: %{name}-test.manifest
 # For Example
 %if %{RELEASE} == "True"
 %define build_mode release
+%define log_level INFO
 %else
 %define build_mode debug
 %endif
@@ -184,6 +185,7 @@ scons %{JOB} --prefix=%{_prefix} \
     BLE_TIZEN_30=%{BLE_TIZEN_30} \
     DISABLE_BLE_SERVER=%{DISABLE_BLE_SERVER} \
     MULTIPLE_OWNER=%{MULTIPLE_OWNER} \
+    LOG_LEVEL=%{log_level} \
     #eol
 
 %install
index e571f22..2817e65 100644 (file)
@@ -35,6 +35,7 @@ Source1002: %{name}-test.manifest
 # For Example
 %if %{RELEASE} == "True"
 %define build_mode release
+%define log_level INFO
 %else
 %define build_mode debug
 %endif
@@ -182,6 +183,8 @@ scons %{JOB} --prefix=%{_prefix} \
     BLE_TIZEN_30=%{BLE_TIZEN_30} \
     DISABLE_BLE_SERVER=%{DISABLE_BLE_SERVER} \
     MULTIPLE_OWNER=%{MULTIPLE_OWNER} \
+    OIC_SUPPORT_TIZEN_TRACE=%{OIC_SUPPORT_TIZEN_TRACE} \
+    LOG_LEVEL=%{log_level} \
     #eol
 
 %install