logdir handling and double quotes over single
This commit is contained in:
parent
d891ca374b
commit
dd3b125bc8
@ -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
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user