REF: Made sure everything conforms to Flake8's standards

FIX: Fixed the Permission issues with logger
FEAT: Changed how the XP system works. Now does a scaling curve with xp being 1-5
This commit is contained in:
Dan
2024-06-22 08:55:26 -04:00
parent 4d9214e378
commit 39603b1e06
12 changed files with 327 additions and 195 deletions

View File

@@ -1,7 +1,5 @@
# modules/admin/logging_config.py
import logging
import logging.handlers
import os
LOG_DIR = "logs"
@@ -14,9 +12,7 @@ logging_config = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"standard": {
"format": "%(asctime)s [%(levelname)s] %(name)s: %(message)s"
},
"standard": {"format": "%(asctime)s [%(levelname)s] %(name)s: %(message)s"},
},
"handlers": {
"console": {
@@ -29,7 +25,7 @@ logging_config = {
"class": "logging.handlers.RotatingFileHandler",
"formatter": "standard",
"filename": LOG_FILE,
"maxBytes": 1024*1024*5, # 5 MB
"maxBytes": 1024 * 1024 * 5, # 5 MB
"backupCount": 3,
},
},