diff --git a/container_includes/python_overrides/logger/__init__.py b/container_includes/python_overrides/logger/__init__.py index 60796f5d8c..aaa982adde 100644 --- a/container_includes/python_overrides/logger/__init__.py +++ b/container_includes/python_overrides/logger/__init__.py @@ -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