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;
}
}
*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;
}
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;
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;
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;
}
}
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;
}
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;
}
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;
}
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;
}
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 "
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;
}
}
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;
}
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;
}
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;
}
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;
}