diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2010-03-25 20:40:17 +0000 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2010-03-25 20:40:17 +0000 |
commit | 65cd829232508405833ee5ae46c9fff42a2b215a (patch) | |
tree | 9160bfa4a05d1baaf0c94683240553f5d7cc148e /src/backend/utils/init/postinit.c | |
parent | 5ceb13c8a12320a44fa211cf0ba32b1641270aeb (diff) | |
download | postgresql-65cd829232508405833ee5ae46c9fff42a2b215a.tar.gz postgresql-65cd829232508405833ee5ae46c9fff42a2b215a.zip |
Modify some new and pre-existing messages for translatability.
Diffstat (limited to 'src/backend/utils/init/postinit.c')
-rw-r--r-- | src/backend/utils/init/postinit.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index 87895acdf66..afd4bc65b27 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.207 2010/03/24 21:25:50 sriggs Exp $ + * $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.208 2010/03/25 20:40:17 sriggs Exp $ * * *------------------------------------------------------------------------- @@ -221,12 +221,19 @@ PerformAuthentication(Port *port) * Log connection for streaming replication even if Log_connections disabled. */ if (am_walsender) - ereport(LOG, - (errmsg("replication connection authorized: user=%s host=%s%s%s", - port->user_name, - port->remote_host, port->remote_port[0] ? " port=" : "", - port->remote_port))); - + { + if (port->remote_port[0]) + ereport(LOG, + (errmsg("replication connection authorized: user=%s host=%s port=%s", + port->user_name, + port->remote_host, + port->remote_port))); + else + ereport(LOG, + (errmsg("replication connection authorized: user=%s host=%s", + port->user_name, + port->remote_host))); + } else if (Log_connections) ereport(LOG, (errmsg("connection authorized: user=%s database=%s", |