From 9eff010b35eb97bc5e18a30d124e53dc42c49a2a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 7 Mar 2024 16:52:38 -0500 Subject: [PATCH] fix(pterodactyl): reduced websocket logging level again --- pterodactyl/logger.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pterodactyl/logger.py b/pterodactyl/logger.py index ef33dd8..3590b4f 100644 --- a/pterodactyl/logger.py +++ b/pterodactyl/logger.py @@ -1,10 +1,9 @@ -import logging - +from red_commons import logging from red_commons.logging import getLogger logger = getLogger('red.seacogs.pterodactyl') websocket_logger = getLogger('red.seacogs.pterodactyl.websocket') -if logger.level == logging.DEBUG: - websocket_logger.setLevel(logging.INFO) -elif logger.level < logging.DEBUG: - websocket_logger.setLevel(logging.DEBUG) +if logger.level >= logging.VERBOSE: + websocket_logger.setLevel(logging.logging.INFO) +elif logger.level < logging.VERBOSE: + websocket_logger.setLevel(logging.logging.DEBUG)