From: Pavan Deolasee Date: Fri, 7 Apr 2017 05:21:33 +0000 (+0530) Subject: Reduce verbosity of client disconnection messages. X-Git-Tag: XL_10_R1BETA1~322 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=f2fb0b57916fa2190adc50036835af2dc08e17fa;p=postgres-xl.git Reduce verbosity of client disconnection messages. Per complaint from Michael Misiewicz that it may fill up the GTM/GTM-proxy log files. --- 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;