misc: add missing .warning() method to NullLogger (#45709)

This commit is contained in:
Frédéric Péters 2020-08-03 17:33:41 +02:00
parent eefd93a5b3
commit 02fd08460c
1 changed files with 6 additions and 0 deletions

View File

@ -429,10 +429,16 @@ class QommonPublisher(Publisher, object):
class NullLogger(object):
def error(self, *args):
pass
def warn(self, *args):
pass
def warning(self, *args):
pass
def info(self, *args):
pass
def debug(self, *args):
pass
self._app_logger = NullLogger()