From: Marko Kreen Date: Wed, 8 Dec 2010 15:14:50 +0000 (+0200) Subject: debug log user/database also on startup X-Git-Tag: pgbouncer_1_4~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=327dd1113096e6683866954a819b33bbfb2bca11;p=pgbouncer debug log user/database also on startup --- diff --git a/src/client.c b/src/client.c index f659a8d..fe1ac43 100644 --- a/src/client.c +++ b/src/client.c @@ -114,13 +114,15 @@ static bool decide_startup_pool(PgSocket *client, PktHdr *pkt) if (!ok) break; - if (strcmp(key, "database") == 0) + if (strcmp(key, "database") == 0) { + slog_debug(client, "got var: %s=%s", key, val); dbname = val; - else if (strcmp(key, "user") == 0) + } else if (strcmp(key, "user") == 0) { + slog_debug(client, "got var: %s=%s", key, val); username = val; - else if (varcache_set(&client->vars, key, val)) + } else if (varcache_set(&client->vars, key, val)) { slog_debug(client, "got var: %s=%s", key, val); - else if (strlist_contains(cf_ignore_startup_params, key)) { + } else if (strlist_contains(cf_ignore_startup_params, key)) { slog_debug(client, "ignoring startup parameter: %s=%s", key, val); } else { slog_warning(client, "unsupported startup parameter: %s=%s", key, val);