equal
deleted
inserted
replaced
216 return [self.row_dict([self.mogrify('%s', [x]).decode('utf8') for x in row], lstrip) for row in rows] |
216 return [self.row_dict([self.mogrify('%s', [x]).decode('utf8') for x in row], lstrip) for row in rows] |
217 |
217 |
218 def _log_query(self, query='?', args=None): |
218 def _log_query(self, query='?', args=None): |
219 name = self.connection.name if hasattr(self.connection, 'name') else '-' |
219 name = self.connection.name if hasattr(self.connection, 'name') else '-' |
220 query = self.query or self.mogrify(query, args) |
220 query = self.query or self.mogrify(query, args) |
221 log_sql.info('[%s] %s' % (name, query.decode('utf8'))) |
221 log_sql.debug('[%s] %s' % (name, query.decode('utf8'))) |
222 |
222 |
223 def _log_exception(self): |
223 def _log_exception(self): |
224 name = self.connection.name if hasattr(self.connection, 'name') else '-' |
224 name = self.connection.name if hasattr(self.connection, 'name') else '-' |
225 log_sql.exception('[%s] exception:' % (name,)) |
225 log_sql.exception('[%s] exception:' % (name,)) |
226 |
226 |