68bf20
From f1f89ef85b65b95f568d46fea85c7e7834e3a101 Mon Sep 17 00:00:00 2001
1f3433
From: Simo Sorce <simo@redhat.com>
1f3433
Date: Thu, 26 Oct 2017 11:47:54 -0400
1f3433
Subject: [PATCH] Emit debug on queue errors
1f3433
1f3433
Signed-off-by: Simo Sorce <simo@redhat.com>
1f3433
Reviewed-by: Robbie Harwood <rharwood@redhat.com>
1f3433
Merges: #218
1f3433
(cherry picked from commit af666affbd4735ba437e3d89d9e22984a556ed16)
1f3433
---
1f3433
 proxy/src/gp_workers.c | 2 ++
1f3433
 1 file changed, 2 insertions(+)
1f3433
1f3433
diff --git a/proxy/src/gp_workers.c b/proxy/src/gp_workers.c
1f3433
index 2a33c21..18f38f6 100644
1f3433
--- a/proxy/src/gp_workers.c
1f3433
+++ b/proxy/src/gp_workers.c
1f3433
@@ -314,6 +314,8 @@ static void gp_handle_reply(verto_ctx *vctx, verto_ev *ev)
1f3433
         case GP_QUERY_IN:
1f3433
             /* ?! fallback and kill client conn */
1f3433
         case GP_QUERY_ERR:
1f3433
+            GPDEBUGN(3, "[status] Handling query error, terminating CID %d.\n",
1f3433
+                     gp_conn_get_cid(q->conn));
1f3433
             gp_conn_free(q->conn);
1f3433
             gp_query_free(q, true);
1f3433
             break;