Skip to content

Commit 67693bf

Browse files
committed
Increase logging output
1 parent 74f0fdb commit 67693bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/mysql_db/mysql_db.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,8 @@ func (db *MySQLDb) AuthMethod(user, addr string) (string, error) {
502502

503503
u := db.GetUser(user, host, false, false)
504504
if u == nil {
505-
return "", mysql.NewSQLError(mysql.ERAccessDeniedError, mysql.SSAccessDeniedError, "User not found '%v'", user)
505+
return "", mysql.NewSQLError(mysql.ERAccessDeniedError, mysql.SSAccessDeniedError,
506+
"User not found '%v'. Connected from '%v'", user, host)
506507
}
507508
if _, ok := db.plugins[u.Plugin]; ok {
508509
return "mysql_clear_password", nil

0 commit comments

Comments
 (0)