From aa53b6f7485397e14180f13b78479eb6e9995f6a Mon Sep 17 00:00:00 2001 From: SirGankalot <73303677+SirGankalot@users.noreply.github.com> Date: Fri, 21 Jun 2024 15:38:26 +0200 Subject: [PATCH] taking out logging of service -> harder debugging for them later on --- service/src/__init__.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/service/src/__init__.py b/service/src/__init__.py index 371b855..e007fa0 100644 --- a/service/src/__init__.py +++ b/service/src/__init__.py @@ -7,19 +7,6 @@ import random import base64 -log_directory = os.path.join("..", "instance") -if not os.path.exists(log_directory): - os.makedirs(log_directory) - -fh = logging.FileHandler(os.path.join(log_directory, "service.log")) -logger = logging.getLogger("ENOWARS_LOGER") -logger.setLevel(logging.DEBUG) -fh = logging.FileHandler("../instance/service.log") -fh.setLevel(logging.DEBUG) -formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s") -fh.setFormatter(formatter) -logger.addHandler(fh) - db = SQLAlchemy() DB_NAME = "database.db" def generate_secret_key():