From 884745224e896da644f4aaebd5a55360d0e38638 Mon Sep 17 00:00:00 2001 From: tarzan Date: Mon, 5 May 2014 10:46:23 +0700 Subject: [PATCH] Log query (DEBUG level) before execute. --- cqlengine/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cqlengine/connection.py b/cqlengine/connection.py index e03a35b1..2f7d940c 100644 --- a/cqlengine/connection.py +++ b/cqlengine/connection.py @@ -221,11 +221,11 @@ class ConnectionPool(object): con = self.get() if not con: raise CQLEngineException("Error calling execute without calling setup.") + LOG.debug('{} {}'.format(query, repr(params))) cur = con.cursor() cur.execute(query, params, consistency_level=consistency_level) columns = [i[0] for i in cur.description or []] results = [RowResult(r) for r in cur.fetchall()] - LOG.debug('{} {}'.format(query, repr(params))) self.put(con) return QueryResult(columns, results) except CQLConnectionError as ex: