HAWQ-1682. Remove useless log for cloud authentication
diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c
index d1da5a5..7252918 100644
--- a/src/backend/commands/user.c
+++ b/src/backend/commands/user.c
@@ -559,7 +559,7 @@
char *errormsg;
int ret = check_authentication_from_cloud(stmt->role, password,
&createrole, USER_SYNC, "create", &errormsg);
- elog(INFO, "in CreateRole, ret=%d", ret);
+ elog(DEBUG3, "in CreateRole, ret=%d", ret);
if (ret)
{
/*
@@ -1158,7 +1158,7 @@
ret = check_authentication_from_cloud(stmt->role, NULL,
&new_record[Anum_pg_authid_rolcreaterole - 1], USER_SYNC,
"alter", &errormsg);
- elog(INFO, "in AlterRole, ret=%d", ret);
+ elog(DEBUG3, "in AlterRole, ret=%d", ret);
if (ret)
{
elog(ERROR, "%s", errormsg);
@@ -1212,7 +1212,7 @@
int ret;
ret = check_authentication_from_cloud(stmt->role, password, NULL,
USER_SYNC, "alter", &errormsg);
- elog(INFO, "in AlterRole, ret=%d", ret);
+ elog(DEBUG3, "in AlterRole, ret=%d", ret);
if (ret)
{
elog(ERROR, "%s", errormsg);
@@ -1644,6 +1644,7 @@
char *errormsg;
int ret = check_authentication_from_cloud(role, NULL, NULL,
USER_SYNC, "drop", &errormsg);
+ elog(DEBUG3, "in DropRole, ret=%d", ret);
if (ret)
{
elog(ERROR, "%s", errormsg);
diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c
index 1e0e888..1475ca0 100644
--- a/src/backend/libpq/auth.c
+++ b/src/backend/libpq/auth.c
@@ -2721,7 +2721,8 @@
pg_cloud_auth = true;
- elog(LOG, "in CheckCloudAuth, port->hba->cloudserver=%s, pg_cloud_clustername=%s", port->hba->cloudserver, pg_cloud_clustername);
+ elog(
+ DEBUG3, "in CheckCloudAuth, port->hba->cloudserver=%s, pg_cloud_clustername=%s", port->hba->cloudserver, pg_cloud_clustername);
if (!port->hba->cloudserver || port->hba->cloudserver[0] == '\0')
{
ereport(LOG,
@@ -2742,11 +2743,9 @@
return STATUS_ERROR;
}
- elog(LOG, "in CheckCloudAuth, before init_cloud_curl");
init_cloud_curl();
char *errormsg;
- elog(LOG, "in CheckCloudAuth, before check_authentication_from_cloud");
result = check_authentication_from_cloud(port->user_name, passwd, NULL,
AUTHENTICATION_CHECK, "", &errormsg);
if (result)