summaryrefslogtreecommitdiff
path: root/src/backend/libpq
diff options
context:
space:
mode:
authorPeter Eisentraut2015-11-17 02:16:42 +0000
committerPeter Eisentraut2015-11-17 02:39:23 +0000
commit5db837d3f22960c2fdc11b390ecf3984b3e0c49e (patch)
treefde75b3dbb7825e696d66c708e490850ed1b4446 /src/backend/libpq
parent53264c7b1e0c9be7bc05289372265c768869f818 (diff)
Message improvements
Diffstat (limited to 'src/backend/libpq')
-rw-r--r--src/backend/libpq/auth.c3
-rw-r--r--src/backend/libpq/pqcomm.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c
index aca4ffe4c7e..cdc5bf129a2 100644
--- a/src/backend/libpq/auth.c
+++ b/src/backend/libpq/auth.c
@@ -668,8 +668,7 @@ recv_password_packet(Port *port)
errmsg("invalid password packet size")));
/* Do not echo password to logs, for security. */
- ereport(DEBUG5,
- (errmsg("received password packet")));
+ elog(DEBUG5, "received password packet");
/*
* Return the received string. Note we do not attempt to do any
diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c
index 63673b16dfb..0be94b008c8 100644
--- a/src/backend/libpq/pqcomm.c
+++ b/src/backend/libpq/pqcomm.c
@@ -1168,7 +1168,7 @@ pq_startmsgread(void)
if (PqCommReadingMsg)
ereport(FATAL,
(errcode(ERRCODE_PROTOCOL_VIOLATION),
- errmsg("terminating connection because protocol sync was lost")));
+ errmsg("terminating connection because protocol synchronization was lost")));
PqCommReadingMsg = true;
}