Change some logs into warnings 24/285624/2
authorTomasz Swierczek <t.swierczek@samsung.com>
Thu, 15 Dec 2022 11:46:15 +0000 (12:46 +0100)
committerTomasz Swierczek <t.swierczek@samsung.com>
Mon, 19 Dec 2022 12:33:29 +0000 (13:33 +0100)
As requested explicitly by Visual Display Division.

Change-Id: I54d18b426d0fc1f65d92352036e660ed6310736d

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

index 83796e193492af0ec9acc00546c3fe023113790e..e5b985566c98fc4e0ab80e785b77a0170fba5b8e 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);
-    LOGD("cynara_creds_get_default_client_method, cachedMethodCode = %d", cachedMethodCode);
+    LOGW("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);
-    LOGD("cynara_creds_get_default_user_method, cachedMethodCode = %d", cachedMethodCode);
+    LOGW("cynara_creds_get_default_user_method, cachedMethodCode = %d", cachedMethodCode);
     return CYNARA_API_SUCCESS;
 }
index 3430faa2aff1270457067442a74138ae31e9da46..9a266c84a5d1dd0dbeedc26b7d30e5f5d33503a7 100644 (file)
@@ -62,10 +62,10 @@ struct Credentials
             return CYNARA_API_UNKNOWN_ERROR;
 
 
-        LOGD("Calling %s on %s", dbusMethod, dbusName);
+        LOGW("Calling %s on %s", dbusMethod, dbusName);
         m_reply = dbus_connection_send_with_reply_and_block(connection, m_message,
                                                             DBUS_TIMEOUT_USE_DEFAULT, nullptr);
-        LOGD("%s returned", dbusMethod);
+        LOGW("%s returned", dbusMethod);
         if (m_reply == nullptr)
             return CYNARA_API_UNKNOWN_ERROR;
 
@@ -164,7 +164,7 @@ int cynara_creds_dbus_get_client(DBusConnection *connection, const char *uniqueN
     }
 
     Credentials credentials;
-    LOGD("Attempting to initialize Credentials");
+    LOGW("Attempting to initialize Credentials");
     ret = credentials.init(connection, uniqueName);
     if (ret != CYNARA_API_SUCCESS)
         return ret;
@@ -187,7 +187,7 @@ int cynara_creds_dbus_get_client(DBusConnection *connection, const char *uniqueN
         default:
             return CYNARA_API_METHOD_NOT_SUPPORTED;
     }
-    LOGD("cynara_creds_dbus_get_client returns %d", ret);
+    LOGW("cynara_creds_dbus_get_client returns %d", ret);
     return ret;
 }
 
index 43900c26c34c0dcb7224ce7127437329363f687b..19b88f32d0a5cc87a73a79417c58dd25c691ef24 100644 (file)
@@ -43,12 +43,12 @@ struct Credentials
     }
     int init(GDBusConnection *connection, const gchar *uniqueId) {
         GError *err = nullptr;
-        LOGD("Calling GetConnectionCredentials on org.freedesktop.DBus");
+        LOGW("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);
-        LOGD("GetConnectionCredentials returned");
+        LOGW("GetConnectionCredentials returned");
         if (reply == nullptr) {
             if (err != nullptr) {
                 LOGE("Getting client credentials by calling dbus method GetConnectionCredentials "
@@ -120,7 +120,7 @@ int cynara_creds_gdbus_get_client(GDBusConnection *connection, const gchar *uniq
     }
 
     Credentials credentials;
-    LOGD("Attempting to initialize Credentials");
+    LOGW("Attempting to initialize Credentials");
     ret = credentials.init(connection, uniqueName);
     if (ret != CYNARA_API_SUCCESS)
         return ret;
@@ -139,7 +139,7 @@ int cynara_creds_gdbus_get_client(GDBusConnection *connection, const gchar *uniq
         default:
             return CYNARA_API_METHOD_NOT_SUPPORTED;
     }
-    LOGD("cynara_creds_gdbus_get_client returns %d", ret);
+    LOGW("cynara_creds_gdbus_get_client returns %d", ret);
     return ret;
 }