Refactored error handling in add_appointment; minor comments from PR review

This commit is contained in:
Salvatore Ingala
2019-10-25 14:51:15 +08:00
parent b55355e564
commit 21b54f048e
4 changed files with 46 additions and 31 deletions

View File

@@ -30,4 +30,4 @@ class Logger(object):
logging.error(StructuredMessage(self._add_prefix(msg), actor=self.actor, **kwargs))
def warning(self, msg, **kwargs):
logging.warning(StructuredMessage(self._add_prefix(msg), actor=self.actor, **kwargs))
logging.warning(StructuredMessage(self._add_prefix(msg), actor=self.actor, **kwargs))