logdir handling and double quotes over single

This commit is contained in:
Corban-Lee Jones 2024-02-07 09:22:26 +00:00
parent d891ca374b
commit dd3b125bc8

View File

@ -31,13 +31,13 @@ async def main():
if not token:
raise ValueError("Token is empty")
developing = bool(getenv("DEVELOPING"))
developing = getenv("DEVELOPING") == "True"
# Setup logging settings and mute spammy loggers
logsetup = LogSetup(BASE_DIR)
logsetup = LogSetup(BASE_DIR / "logs/")
logsetup.setup_logs(logging.DEBUG if developing else logging.INFO)
logsetup.update_log_levels(
('discord', 'PIL', 'urllib3', 'aiosqlite', 'charset_normalizer'),
("discord", "PIL", "urllib3", "aiosqlite", "charset_normalizer"),
level=logging.WARNING
)