Changed log messages for dousers

Changed log messages for dousers
This commit is contained in:
MassimilianoPinto
2014-11-20 11:31:54 +01:00
parent a65b9fa8b3
commit 69a1c5aaf5

View File

@ -752,19 +752,19 @@ getUsers(SERVICE *service, USERS *users)
/* Log the user being added with its db grants */ /* Log the user being added with its db grants */
LOGIF(LD, (skygw_log_write_flush( LOGIF(LD, (skygw_log_write_flush(
LOGFILE_DEBUG, LOGFILE_DEBUG,
"%lu [mysql_users_add()] Added user %s@%s with DB grants on [%s]", "Added user %s@%s with DB grants on [%s], for service [%s]",
pthread_self(),
row[0], row[0],
row[1], row[1],
dbgrant))); dbgrant,
service->name)));
} else { } else {
/* Log the user being added (without db grants) */ /* Log the user being added (without db grants) */
LOGIF(LD, (skygw_log_write_flush( LOGIF(LD, (skygw_log_write_flush(
LOGFILE_DEBUG, LOGFILE_DEBUG,
"%lu [mysql_users_add()] Added user %s@%s", "Added user %s@%s for service [%s]",
pthread_self(),
row[0], row[0],
row[1]))); row[1],
service->name)));
} }
/* Append data in the memory area for SHA1 digest */ /* Append data in the memory area for SHA1 digest */
@ -774,8 +774,7 @@ getUsers(SERVICE *service, USERS *users)
} else { } else {
LOGIF(LE, (skygw_log_write_flush( LOGIF(LE, (skygw_log_write_flush(
LOGFILE_ERROR, LOGFILE_ERROR,
"%lu [mysql_users_add()] Failed adding user %s@%s for service [%s]", "Warning: Failed adding user %s@%s for service [%s]",
pthread_self(),
row[0], row[0],
row[1], row[1],
service->name))); service->name)));