forked from Hay1tsme/artemis
Also check if discord_webhook is an empty string
This commit is contained in:
@ -40,7 +40,7 @@ def init_root_logger(cfg: "CoreConfig"):
|
||||
|
||||
artemis_logger.addHandler(console_handler)
|
||||
|
||||
if cfg.logging.discord_webhook is not None:
|
||||
if cfg.logging.discord_webhook:
|
||||
artemis_logger.addHandler(DiscordLogHandler(cfg.logging.discord_webhook, cfg.logging.discord_who_to_ping))
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user