From 74d26031b7bf82ad76ae4d795fbfbffbf06d10e3 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Sat, 17 Sep 2005 22:58:51 +0000 Subject: [PATCH] Don't lose notices that don't come from a query. --- connection.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/connection.c b/connection.c index 38a4e28..b27af82 100644 --- a/connection.c +++ b/connection.c @@ -2359,7 +2359,11 @@ CC_handle_notice(void *arg, const char *msg) if (qres == NULL) { - // No query in progress, so just drop the notice + /* Log the notice to stderr and any logs 'cos */ + /* there's not much else we can do with it. */ + fprintf(stderr, "NOTICE from backend outside of a query: '%s'\n", msg); + mylog("~~~ NOTICE: '%s'\n", msg); + qlog("NOTICE from backend outside of a query: '%s'\n", msg); return; } -- 2.39.5