From 86380766ac8253208c4d79338757993ba4746005 Mon Sep 17 00:00:00 2001 From: Gnarwhal Date: Wed, 4 Sep 2024 17:51:58 +0000 Subject: [PATCH] loggers => _loggers --- src/sshare/logger.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/sshare/logger.py b/src/sshare/logger.py index 084292f..d586028 100644 --- a/src/sshare/logger.py +++ b/src/sshare/logger.py @@ -17,25 +17,25 @@ from sshare.plugin import Plugin class Logger: def __init__(self, *args, **kwargs): if kwargs.get("preload_command_line") == True: - self.loggers = [ Plugin.internal("command_line") ] + self._loggers = [ Plugin.internal("command_line") ] else: - self.loggers = [] + self._loggers = [] self.add(*args) def add(self, *args, **kwargs): for logger in args: - self.loggers.append() + self._loggers.append() def info(self, message): - for logger in self.loggers: + for logger in self._loggers: logger.info(message) def warn(self, message): - for logger in self.loggers: + for logger in self._loggers: logger.warn(message) def error(self, message): - for logger in self.loggers: + for logger in self._loggers: logger.error(message) def fatal(self, message, error_code=1):