mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 17:58:55 +00:00
fix log levels
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user