]> granicus.if.org Git - pgbouncer/commitdiff
Clarify few login-related log messages
authorMarko Kreen <markokr@gmail.com>
Fri, 13 Nov 2009 13:57:04 +0000 (13:57 +0000)
committerMarko Kreen <markokr@gmail.com>
Fri, 13 Nov 2009 13:57:04 +0000 (13:57 +0000)
src/client.c

index f620717bfeb19d5c0317fdcc6d3da8d7ee8c5a10..613aa54b12dcd37d17e0d81df396e9a9ca00292d 100644 (file)
@@ -149,7 +149,7 @@ static bool decide_startup_pool(PgSocket *client, PktHdr *pkt)
        /* find pool and log about it */
        if (set_pool(client, dbname, username)) {
                if (cf_log_connections)
-                       slog_info(client, "login successful: db=%s user=%s", dbname, username);
+                       slog_info(client, "login attempt: db=%s user=%s", dbname, username);
                return true;
        } else {
                if (cf_log_connections)
@@ -256,7 +256,7 @@ static bool handle_client_startup(PgSocket *client, PktHdr *pkt)
                        if (!finish_client_login(client))
                                return false;
                } else {
-                       disconnect_client(client, true, "Login failed");
+                       disconnect_client(client, true, "Auth failed");
                        return false;
                }
                break;