fix log levels

This commit is contained in:
Brandon Thomas committed 2023-05-28 19:04:09 -07:00
1 parent 64fa281bc1
commit df4f1e6a6c
1 file changed
+6 -7
@@ -56,22 +56,21 @@ class FakeYouLogger:
def addHandler(self, *args):
pass
def warning(self, *args):
if self.level >= WARN:
print('warning', args, flush=self.flush)
def warn(self, *args):
if self.level >= WARN:
if self.level <= WARN:
print('warn', args, flush=self.flush)
def info(self, *args):
if self.level >= INFO:
if self.level <= INFO:
print('info', args, flush=self.flush)
def debug(self, *args):
if self.level >= DEBUG:
if self.level <= DEBUG:
print('debug', args, flush=self.flush)
# Method aliases
warning = warn
#---------------------------------------------------------------------------
# Level related stuff