示例#1
0
    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)
示例#2
0
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()}