Updated _logger.py

Fixed bug in class@debug() method where the appropriate level wasn't being passed.
This commit is contained in:
Ethan Smith-Coss 2023-07-29 22:27:35 +01:00
parent 8e6613412b
commit d6afb45a73
Signed by: TheOnePath
GPG Key ID: 4E7D436CE1A0BAF1

View File

@ -204,7 +204,7 @@ class Logger:
method can be invoked directly afterwards (or later) to write method can be invoked directly afterwards (or later) to write
the same message to the console. the same message to the console.
""" """
self.writeLog(*value, sep=sep, end=end, wrapping=wrapping, strace=strace) self.writeLog(*value, level=common.LogLevel.DEBUG, sep=sep, end=end, wrapping=wrapping, strace=strace)
self.__std_pipe = sys.stderr self.__std_pipe = sys.stderr
self.__log_info = LOG_INFO_TUPLE(IS_STDERR_REDIR, common.LogLevel.DEBUG, value, sep, end) self.__log_info = LOG_INFO_TUPLE(IS_STDERR_REDIR, common.LogLevel.DEBUG, value, sep, end)
@ -224,8 +224,7 @@ class Logger:
method can be invoked directly afterwards (or later) to write method can be invoked directly afterwards (or later) to write
the same message to the console. the same message to the console.
""" """
self.writeLog(*value, level=common.LogLevel.WARN, sep=sep, self.writeLog(*value, level=common.LogLevel.WARN, sep=sep, end=end, wrapping=wrapping, strace=strace)
end=end, wrapping=wrapping, strace=strace)
self.__std_pipe = sys.stderr self.__std_pipe = sys.stderr
self.__log_info = LOG_INFO_TUPLE(IS_STDERR_REDIR, common.LogLevel.WARN, value, sep, end) self.__log_info = LOG_INFO_TUPLE(IS_STDERR_REDIR, common.LogLevel.WARN, value, sep, end)