Skip to content

Commit

Permalink
executor: models: Removed debug messages from the SqliteTransaction
Browse files Browse the repository at this point in the history
… class
  • Loading branch information
fuzeman committed May 18, 2017
1 parent 5d7c6af commit 588e9d0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions byte/executors/sqlite/models/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
from byte.executors.core.models.database import DatabaseTransaction
from byte.executors.sqlite.models.cursor import SqliteCursor

import logging

log = logging.getLogger(__name__)


class SqliteTransaction(DatabaseTransaction, SqliteCursor):
"""SQLite transaction class."""
Expand All @@ -16,24 +12,16 @@ def begin(self):
"""Begin transaction."""
self.instance.execute('BEGIN;')

log.debug('BEGIN')

def commit(self):
"""Commit transaction."""
log.debug('COMMIT')

self.connection.instance.commit()

def rollback(self):
"""Rollback transaction."""
log.debug('ROLLBACK')

self.connection.instance.rollback()

def close(self):
"""Close transaction."""
log.debug('CLOSE')

# Close cursor
self.instance.close()
self.instance = None
Expand Down

0 comments on commit 588e9d0

Please sign in to comment.