diff --git a/requirements.txt b/requirements.txt index dbdb59b..44d3b44 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +pip MechanicalSoup mysql.connector pingparsing diff --git a/src/DatabaseInteractor.py b/src/DatabaseInteractor.py index fa06427..3ff5d28 100644 --- a/src/DatabaseInteractor.py +++ b/src/DatabaseInteractor.py @@ -57,6 +57,8 @@ def execute_sql_and_get_results(self, sql, values = None): except: self.logger.exception(f'Unexpected error: {exc_info()[0]}') + self.logger.info(f'SQL to execute: {sql}') + self.logger.indo(f'Values: {values}') def execute_sql_with_commit(self, sql, values = None): try: @@ -70,3 +72,5 @@ def execute_sql_with_commit(self, sql, values = None): except: self.logger.exception(f'Unexpected error: {exc_info()[0]}') + self.logger.info(f'SQL to execute: {sql}') + self.logger.indo(f'Values: {values}')