Merge branch 'logging' of github.com:dokai/cqlengine into pull-50

Conflicts:
	cqlengine/columns.py
This commit is contained in:
Blake Eggleston
2013-05-29 08:40:31 -07:00
2 changed files with 5 additions and 0 deletions

View File

@@ -334,6 +334,8 @@ class ContainerQuoter(object):
def __str__(self):
raise NotImplementedError
def __repr__(self):
return self.__str__()
class BaseContainerColumn(Column):
"""

View File

@@ -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