summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Deolasee2017-04-07 05:21:33 +0000
committerPavan Deolasee2017-05-05 04:59:34 +0000
commitf2fb0b57916fa2190adc50036835af2dc08e17fa (patch)
treeeeec721d3a3ab5732d7b1c52cd4687df384f1bd7
parent65125d6fe162594f92b0415201a45656ee8b102f (diff)
Reduce verbosity of client disconnection messages.
Per complaint from Michael Misiewicz that it may fill up the GTM/GTM-proxy log files.
-rw-r--r--src/gtm/main/main.c3
-rw-r--r--src/gtm/proxy/proxy_main.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gtm/main/main.c b/src/gtm/main/main.c
index c51dc9e36b..a518db392e 100644
--- a/src/gtm/main/main.c
+++ b/src/gtm/main/main.c
@@ -1496,7 +1496,8 @@ ReadCommand(Port *myport, StringInfo inBuf)
if (qtype == EOF) /* frontend disconnected */
{
- ereport(COMMERROR,
+ /* don't fill up the proxy log with client disconnect messages */
+ ereport(DEBUG1,
(EPROTO,
errmsg("unexpected EOF on client connection")));
return EOF;
diff --git a/src/gtm/proxy/proxy_main.c b/src/gtm/proxy/proxy_main.c
index 4af793df27..9e3bf60ebe 100644
--- a/src/gtm/proxy/proxy_main.c
+++ b/src/gtm/proxy/proxy_main.c
@@ -2045,7 +2045,8 @@ ReadCommand(GTMProxy_ConnectionInfo *conninfo, StringInfo inBuf)
if (qtype == EOF) /* frontend disconnected */
{
- ereport(COMMERROR,
+ /* don't fill up the proxy log with client disconnect messages */
+ ereport(DEBUG1,
(EPROTO,
errmsg("unexpected EOF on client connection")));
return qtype;