fix(pterodactyl): pylint fixes
All checks were successful
Actions / Lint Code (Ruff & Pylint) (push) Successful in 42s
Actions / Build Documentation (MkDocs) (push) Successful in 42s

This commit is contained in:
Seaswimmer 2024-03-07 21:14:12 -05:00
parent 9eff010b35
commit 56522e51ad
Signed by: cswimr
GPG key ID: B8953EC01E5C4063
2 changed files with 4 additions and 3 deletions

View file

@ -17,4 +17,5 @@
import-outside-toplevel, import-outside-toplevel,
import-self, import-self,
relative-beyond-top-level, relative-beyond-top-level,
too-many-instance-attributes too-many-instance-attributes,
duplicate-code

View file

@ -4,6 +4,6 @@ from red_commons.logging import getLogger
logger = getLogger('red.seacogs.pterodactyl') logger = getLogger('red.seacogs.pterodactyl')
websocket_logger = getLogger('red.seacogs.pterodactyl.websocket') websocket_logger = getLogger('red.seacogs.pterodactyl.websocket')
if logger.level >= logging.VERBOSE: if logger.level >= logging.VERBOSE:
websocket_logger.setLevel(logging.logging.INFO) websocket_logger.setLevel(logging.logging.INFO)
elif logger.level < logging.VERBOSE: elif logger.level < logging.VERBOSE:
websocket_logger.setLevel(logging.logging.DEBUG) websocket_logger.setLevel(logging.logging.DEBUG)