Change some frequent logs from warning to info 34/318134/3 tizen_8.0
authorTomasz Swierczek <t.swierczek@samsung.com>
Mon, 13 Jan 2025 09:00:25 +0000 (10:00 +0100)
committerTomasz Swierczek <t.swierczek@samsung.com>
Mon, 13 Jan 2025 09:46:36 +0000 (10:46 +0100)
There seem to be no difference in VD env. between warning & info,
and thanks to this change, other divisions can cut down the number
of logs displayed.

Change-Id: I28fc4d5ad6d7e7f6e03084a85c3289574c8d38b5

src/helpers/creds-commons/creds-commons.cpp
src/helpers/creds-dbus/creds-dbus.cpp
src/helpers/creds-gdbus/creds-gdbus.cpp

index e5b985566c98fc4e0ab80e785b77a0170fba5b8e..fa78e43f2b184fa8a13297c5ca1780bb9a657d5f 100644 (file)
@@ -58,7 +58,7 @@ int cynara_creds_get_default_client_method(enum cynara_client_creds *method) {
             return ret;
     }
     *method = static_cast<enum cynara_client_creds>(cachedMethodCode);
-    LOGW("cynara_creds_get_default_client_method, cachedMethodCode = %d", cachedMethodCode);
+    LOGI("cynara_creds_get_default_client_method, cachedMethodCode = %d", cachedMethodCode);
     return CYNARA_API_SUCCESS;
 
 }
@@ -83,6 +83,6 @@ int cynara_creds_get_default_user_method(enum cynara_user_creds *method) {
     }
 
     *method = static_cast<enum cynara_user_creds>(cachedMethodCode);
-    LOGW("cynara_creds_get_default_user_method, cachedMethodCode = %d", cachedMethodCode);
+    LOGI("cynara_creds_get_default_user_method, cachedMethodCode = %d", cachedMethodCode);
     return CYNARA_API_SUCCESS;
 }
index 45353ccee6876b6b2ef9df2a34ace2a75490e068..162fd08fc01a57664eac19ca96e060231fbc6593 100644 (file)
@@ -56,7 +56,7 @@ public:
     int init(DBusConnection *connection, const char *uniqueId) {
         DBusMessageIter args_iter, arr_iter, pair_iter, var_iter;
 
-        LOGW("Attempting to initialize DBusCredentials");
+        LOGI("Attempting to initialize DBusCredentials");
         DBusMessage *message = dbus_message_new_method_call(dbusName, dbusObject, dbusInterface, dbusMethod);
         if (message == nullptr)
             return CYNARA_API_OUT_OF_MEMORY;
@@ -65,10 +65,10 @@ public:
             return CYNARA_API_UNKNOWN_ERROR;
 
 
-        LOGW("Calling %s on %s", dbusMethod, dbusName);
+        LOGI("Calling %s on %s", dbusMethod, dbusName);
         DBusMessage *reply = dbus_connection_send_with_reply_and_block(connection, message,
                                    DBUS_TIMEOUT_USE_DEFAULT, nullptr);
-        LOGW("%s returned", dbusMethod);
+        LOGI("%s returned", dbusMethod);
         if (reply == nullptr)
             return CYNARA_API_UNKNOWN_ERROR;
 
@@ -185,7 +185,7 @@ int cynara_creds_dbus_get(DBusConnection *connection, const char *uniqueName,
     ret = cynara_creds_inner_get(credentials, pClientMethod, client,
                                  pUserMethod, user, pid);
 
-    LOGW("cynara_creds_dbus_get returns %d", ret);
+    LOGI("cynara_creds_dbus_get returns %d", ret);
     return ret;
 }
 
@@ -203,7 +203,7 @@ int cynara_creds_dbus_get_default(DBusConnection *connection, const char *unique
     }
 
     ret = cynara_creds_inner_get_default(credentials, client, user, pid);
-    LOGW("cynara_creds_dbus_get_default returns %d", ret);
+    LOGI("cynara_creds_dbus_get_default returns %d", ret);
     return ret;
 }
 
@@ -212,7 +212,7 @@ int cynara_creds_dbus_get_client(DBusConnection *connection, const char *uniqueN
                                  enum cynara_client_creds method, char **client) {
     int ret = cynara_creds_dbus_get(connection, uniqueName, &method, client, nullptr,
                                     nullptr, nullptr);
-    LOGW("cynara_creds_dbus_get_client returns %d", ret);
+    LOGI("cynara_creds_dbus_get_client returns %d", ret);
     return ret;
 }
 
@@ -221,7 +221,7 @@ int cynara_creds_dbus_get_user(DBusConnection *connection, const char *uniqueNam
                                enum cynara_user_creds method, char **user) {
     int ret = cynara_creds_dbus_get(connection, uniqueName, nullptr, nullptr, &method,
                                      user, nullptr);
-    LOGW("cynara_creds_dbus_get_user returns %d", ret);
+    LOGI("cynara_creds_dbus_get_user returns %d", ret);
     return ret;
 }
 
@@ -229,6 +229,6 @@ CYNARA_API
 int cynara_creds_dbus_get_pid(DBusConnection *connection, const char *uniqueName, pid_t *pid) {
     int ret = cynara_creds_dbus_get(connection, uniqueName, nullptr, nullptr, nullptr,
                                      nullptr, pid);
-    LOGW("cynara_creds_dbus_get_pid returns %d", ret);
+    LOGI("cynara_creds_dbus_get_pid returns %d", ret);
     return ret;
 }
index 1a7aa78c10faf587da7c71b143bad1a4c48f8f86..6bae17cc408112fc245e2358dd53670b2d1ca3d8 100644 (file)
@@ -44,14 +44,14 @@ public:
     GDBusCredentials() : m_pid(0), m_uid(0), m_securityLabel(nullptr) {}
 
     int init(GDBusConnection *connection, const gchar *uniqueId) {
-        LOGW("Attempting to initialize GDBusCredentials");
+        LOGI("Attempting to initialize GDBusCredentials");
         GError *err = nullptr;
-        LOGW("Calling GetConnectionCredentials on org.freedesktop.DBus");
+        LOGI("Calling GetConnectionCredentials on org.freedesktop.DBus");
         GVariant *reply = g_dbus_connection_call_sync(connection,
                             "org.freedesktop.DBus", "/org/freedesktop/DBus", "org.freedesktop.DBus",
                             "GetConnectionCredentials", g_variant_new("(s)", uniqueId),
                             G_VARIANT_TYPE("(a{sv})"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &err);
-        LOGW("GetConnectionCredentials returned");
+        LOGI("GetConnectionCredentials returned");
         if (reply == nullptr) {
             if (err != nullptr) {
                 LOGE("Getting client credentials by calling dbus method GetConnectionCredentials "
@@ -146,7 +146,7 @@ int cynara_creds_gdbus_get(GDBusConnection *connection, const gchar *uniqueName,
     ret = cynara_creds_inner_get(credentials, pClientMethod, client,
                                  pUserMethod, user, pid);
 
-    LOGW("cynara_creds_gdbus_get returns %d", ret);
+    LOGI("cynara_creds_gdbus_get returns %d", ret);
     return ret;
 }
 
@@ -164,7 +164,7 @@ int cynara_creds_gdbus_get_default(GDBusConnection *connection, const gchar *uni
     }
 
     ret = cynara_creds_inner_get_default(credentials, client, user, pid);
-    LOGW("cynara_creds_gdbus_get_default returns %d", ret);
+    LOGI("cynara_creds_gdbus_get_default returns %d", ret);
     return ret;
 }
 
@@ -173,7 +173,7 @@ int cynara_creds_gdbus_get_client(GDBusConnection *connection, const gchar *uniq
                                   enum cynara_client_creds method, gchar **client) {
     int ret = cynara_creds_gdbus_get(connection, uniqueName, &method, client, nullptr,
                                      nullptr, nullptr);
-    LOGW("cynara_creds_gdbus_get_client returns %d", ret);
+    LOGI("cynara_creds_gdbus_get_client returns %d", ret);
     return ret;
 }
 
@@ -182,7 +182,7 @@ int cynara_creds_gdbus_get_user(GDBusConnection *connection, const gchar *unique
                                 enum cynara_user_creds method, gchar **user) {
     int ret = cynara_creds_gdbus_get(connection, uniqueName, nullptr, nullptr, &method,
                                      user, nullptr);
-    LOGW("cynara_creds_gdbus_get_user returns %d", ret);
+    LOGI("cynara_creds_gdbus_get_user returns %d", ret);
     return ret;
 }
 
@@ -190,6 +190,6 @@ CYNARA_API
 int cynara_creds_gdbus_get_pid(GDBusConnection *connection, const gchar *uniqueName, pid_t *pid) {
     int ret = cynara_creds_gdbus_get(connection, uniqueName, nullptr, nullptr, nullptr,
                                      nullptr, pid);
-    LOGW("cynara_creds_gdbus_get_pid returns %d", ret);
+    LOGI("cynara_creds_gdbus_get_pid returns %d", ret);
     return ret;
 }