From 8921d607a1111f1b57b1815132f22af5085f99d3 Mon Sep 17 00:00:00 2001 From: Caleb Ely Date: Sun, 20 Nov 2022 18:35:00 -0500 Subject: [PATCH] Move logger module --- .vscode/launch.json | 1 + src/app_factory.py | 2 +- src/core/database/linkrot.py | 2 +- src/core/database/weblink.py | 2 +- src/{ => core}/logger.py | 0 5 files changed, 4 insertions(+), 3 deletions(-) rename src/{ => core}/logger.py (100%) diff --git a/.vscode/launch.json b/.vscode/launch.json index e7c9b16..4bf1f57 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -14,6 +14,7 @@ "env": { "FLASK_APP": "wsgi.py", "FLASK_ENV": "development", + "FLASK_DEBUG": "1", "SYS_VARS_PATH": "${workspaceFolder}/secrets", "DB_PATH": "${workspaceFolder}/database/database.db", "TIMES_FAILED_THRESHOLD": "2", diff --git a/src/app_factory.py b/src/app_factory.py index 5178cca..2d22326 100644 --- a/src/app_factory.py +++ b/src/app_factory.py @@ -7,7 +7,7 @@ from flask_smorest import Api import sys_vars -from src import logger +from src.core import logger from src.blueprints import all_blueprints from src.core.database.schema import db diff --git a/src/core/database/linkrot.py b/src/core/database/linkrot.py index c243f28..e47aeb0 100644 --- a/src/core/database/linkrot.py +++ b/src/core/database/linkrot.py @@ -4,7 +4,7 @@ import requests import sys_vars -from src.logger import LINKROT +from src.core.logger import LINKROT from src.core.database import weblink from src.core.database.schema import RottedLinks, WebLink, db diff --git a/src/core/database/weblink.py b/src/core/database/weblink.py index acc8602..de67da0 100644 --- a/src/core/database/weblink.py +++ b/src/core/database/weblink.py @@ -4,7 +4,7 @@ from markupsafe import Markup -from src.logger import LINKROT +from src.core.logger import LINKROT from src.core.database.schema import WebLink, db diff --git a/src/logger.py b/src/core/logger.py similarity index 100% rename from src/logger.py rename to src/core/logger.py