1
0

Actually bother to set the log level based on the config

This commit is contained in:
2025-08-18 15:48:27 -04:00
parent cf38101981
commit 0d9bf14881

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)