Skip to content

Commit

Permalink
fix: set connection autocommit to True
Browse files Browse the repository at this point in the history
  • Loading branch information
McPatate committed Dec 18, 2024
1 parent f990835 commit c2d4b82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions benchmark/benchmarks_entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class ImportModuleException(Exception):
class MetricsRecorder:
def __init__(self, connection, logger: logging.Logger, branch: str, commit_id: str, commit_msg: str):
self.conn = connection
self.conn.autocommit = True
self.logger = logger
self.branch = branch
self.commit_id = commit_id
Expand Down Expand Up @@ -73,10 +74,10 @@ def close(self):


logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
logger.setLevel(logging.INFO)

handler = logging.StreamHandler(sys.stdout)
handler.setLevel(logging.DEBUG)
handler.setLevel(logging.INFO)
formatter = logging.Formatter("[%(levelname)s - %(asctime)s] %(message)s")
handler.setFormatter(formatter)
logger.addHandler(handler)
Expand Down

0 comments on commit c2d4b82

Please sign in to comment.