1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
13138174a3 Add a teensy warning 2025-08-18 15:51:54 -04:00
0d9bf14881 Actually bother to set the log level based on the config 2025-08-18 15:48:27 -04:00

View File

@@ -6,7 +6,6 @@ import sys
import json
VERSION = "0.0.1"
# Load configuration
ROBLOSECURITY = config.roblosecurity or None
DST_DIR = config.dst_dir or './AppSettings'
@@ -34,7 +33,7 @@ stdout_handler.setFormatter(log_format)
logfile_handler = logging.FileHandler("logs/appsettings.log", mode="w")
logfile_handler.setFormatter(log_format)
log = logging.getLogger("AppSettings-archiver")
log.setLevel(logging.INFO)
log.setLevel(LOG_LEVEL)
log.addHandler(stdout_handler)
log.addHandler(logfile_handler)
@@ -42,7 +41,7 @@ if ROBLOSECURITY is None:
log.warning(f"{"#"*6} ROBLOSECURITY IS NOT SET, SOME FFLAGS MAY BE MISSING {"#"*6}")
if log.level == logging.DEBUG:
log.warning(f"{"#"*6} DEBUG MODE ENABLED, THIS IS A LITTLE LOUDER {"#"*6}")
log.warning(f"{"#"*6} DEBUG LOGS ENABLED, THIS IS A LITTLE LOUDER {"#"*6}")
os.makedirs(DST_DIR, exist_ok=True)