reduce log,add secure error log 94/138694/1 submit/tizen/20170713.084810 submit/tizen/20170718.054910
authorchen89.chen <chen89.chen@samsung.com>
Thu, 13 Jul 2017 09:07:37 +0000 (17:07 +0800)
committerchen89.chen <chen89.chen@samsung.com>
Thu, 13 Jul 2017 09:16:56 +0000 (17:16 +0800)
Change-Id: I48a3abd6ff62bc8d7e2ab0cbe77956789eaac6ac

lib/include/media-util-dbg.h
lib/media-util-db.c
lib/media-util-noti-internal.c

index 7b36579..df1c171 100755 (executable)
@@ -52,6 +52,9 @@
                        SECURE_LOGD(FONT_COLOR_CYAN""fmt""FONT_COLOR_RESET, ##arg); \
                } while (0)
 
+#define MSAPI_ERR_SLOG(fmt, arg...) do { \
+                       SECURE_LOGE(FONT_COLOR_RED""fmt""FONT_COLOR_RESET, ##arg); \
+               } while (0)
 #define MSAPI_DBG(fmt, arg...) do { \
                        LOGD(FONT_COLOR_RESET""fmt"", ##arg); \
                } while (0)
index 3021647..5cf9fc5 100755 (executable)
@@ -369,7 +369,7 @@ EXEC_RETRY:
        ret = sqlite3_exec(db_handle, sql_str, NULL, NULL, &zErrMsg);
 
        if (SQLITE_OK != ret) {
-               MSAPI_DBG_ERR("DB Update Fail SQL : %s", sql_str);
+               MSAPI_ERR_SLOG("%s", sql_str);
                MSAPI_DBG_ERR("ERROR [%s]", zErrMsg);
                if (ret == SQLITE_BUSY) {
                        ret = MS_MEDIA_ERR_DB_BUSY_FAIL;
index 4391bb0..7fb3a21 100755 (executable)
@@ -140,7 +140,7 @@ int media_db_update_send_internal(int pid, /* mandatory */
                }
                return MS_MEDIA_ERR_INTERNAL;
        }
-       MSAPI_DBG_INFO("success send notification");
+
 
        g_object_unref(bus);