From 9531e180c8a508fe4614aae38ca2766352938f52 Mon Sep 17 00:00:00 2001 From: Vladislav Date: Tue, 31 Oct 2023 10:45:00 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B8=D0=BC=D1=8F=20=D1=8E=D0=B7=D0=B5=D1=80=D0=B0=20=D0=B1?= =?UTF-8?q?=D0=B4=20=D0=B8=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=D1=83=20?= =?UTF-8?q?=D0=B2=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=BB=D0=BE=D0=B3?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- endpoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/endpoint.py b/endpoint.py index c3034be..1cccab8 100644 --- a/endpoint.py +++ b/endpoint.py @@ -163,7 +163,7 @@ class Endpoint(Thread): database=self.config["database"]["db-name"] ) as connection: query = f"insert into `{self.db_table}` ({self.db_col_names}) values ({vals_str});" - journal.log(f"Executing query: {query}") + journal.log(f"[{self.config['database']['db-user']}:{self.db_table}] Executing query: {query}") with connection.cursor() as cursor: cursor.execute(query) @@ -198,7 +198,7 @@ class Endpoint(Thread): self.__insert_db_row(row) last_row = row except Exception as ex: - journal.log(f"Exception: {ex}") + journal.log(f"[{self.config['database']['db-user']}:{self.db_table}] Exception: {ex}") # вычислим время до следующего опроса и подождем # время следующего опроса