Added more debug output to user authentication.

This commit is contained in:
Markus Makela
2015-02-20 14:50:26 +02:00
parent 326f0e2e1f
commit 83b7948cdf
4 changed files with 9 additions and 5 deletions

View File

@ -1434,10 +1434,12 @@ int gw_find_mysql_user_password_sha1(char *username, uint8_t *gateway_password,
LOGIF(LD,
(skygw_log_write_flush(
LOGFILE_DEBUG,
"%lu [MySQL Client Auth], checking user [%s@%s]",
"%lu [MySQL Client Auth], checking user [%s@%s]%s%s",
pthread_self(),
key.user,
dcb->remote)));
dcb->remote,
key.resource != NULL ?" db: " :"",
key.resource != NULL ?key.resource :"")));
/* look for user@current_ipv4 now */
user_password = mysql_users_fetch(service->users, &key);