def get_data(self) -> Dict: Logger.debug("Getting data from PubSubPush", extra=self.dict()) data = self.message.data if not data: abort_bad_request() if isinstance(data, dict): return data else: data = base64.b64decode(data) return json.loads(data)
async def debug(): Logger.debug("This is a test debugging log entry") Logger.debug("This is a test debugging log entry with extra info", extra={"foo": "bar"}) return {"logger": Logger.logger_type()}