Skip to content

Commit

Permalink
taking out logging of service -> harder debugging for them later on
Browse files Browse the repository at this point in the history
  • Loading branch information
SirGankalot committed Jun 21, 2024
1 parent a3aa80f commit aa53b6f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions service/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit aa53b6f

Please sign in to comment.