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():