aboutsummaryrefslogtreecommitdiff
path: root/src/Logging.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-07 15:07:31 +0100
committerGravatar jesopo2019-06-07 15:07:31 +0100
commitf822345976e1b91c2afc3dba2472e8a49ae921b4 (patch)
tree4f5e355fcc136bddd2deccec1a776fe498d49267 /src/Logging.py
parentWe need to wait for _check to finish so read/writes can be triggered correctly (diff)
parentLogging._log()'s `params` arg should be typing.Optiona[] (diff)
signature
Merge branch 'master' into feature/write-thread
Diffstat (limited to 'src/Logging.py')
-rw-r--r--src/Logging.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Logging.py b/src/Logging.py
index 5c3d873c..bb7a4dbe 100644
--- a/src/Logging.py
+++ b/src/Logging.py
@@ -61,5 +61,6 @@ class Log(object):
self._log(message, params, logging.ERROR, kwargs)
def critical(self, message: str, params: typing.List=None, **kwargs):
self._log(message, params, logging.CRITICAL, kwargs)
- def _log(self, message: str, params: typing.List, level: int, kwargs: dict):
+ def _log(self, message: str, params: typing.Optional[typing.List],
+ level: int, kwargs: dict):
self.logger.log(level, message, *(params or []), **kwargs)