Merge branch 'logging' of github.com:dokai/cqlengine into pull-50
Conflicts: cqlengine/columns.py
This commit is contained in:
@@ -334,6 +334,8 @@ class ContainerQuoter(object):
|
||||
def __str__(self):
|
||||
raise NotImplementedError
|
||||
|
||||
def __repr__(self):
|
||||
return self.__str__()
|
||||
|
||||
class BaseContainerColumn(Column):
|
||||
"""
|
||||
|
||||
@@ -7,11 +7,13 @@ import Queue
|
||||
import random
|
||||
|
||||
import cql
|
||||
import logging
|
||||
|
||||
from cqlengine.exceptions import CQLEngineException
|
||||
|
||||
from thrift.transport.TTransport import TTransportException
|
||||
|
||||
LOG = logging.getLogger('cqlengine.cql')
|
||||
|
||||
class CQLConnectionError(CQLEngineException): pass
|
||||
|
||||
@@ -167,6 +169,7 @@ class connection_manager(object):
|
||||
|
||||
for i in range(len(_hosts)):
|
||||
try:
|
||||
LOG.debug('{} {}'.format(query, repr(params)))
|
||||
self.cur = self.con.cursor()
|
||||
self.cur.execute(query, params)
|
||||
return self.cur
|
||||
|
||||
Reference in New Issue
Block a user