def failed(self, reply): log.info("failed: %s", reply) any = Options(reply.any) body = dict( sn=reply.sn, any=any.any, status=status(reply.exval), exception=exdict(reply.exval, reply), reply=None ) nj = NotifyJournal() nj.write(reply.sn, any.replyto, body)
def failed(self, reply): log.info('failed: %s', reply) any = Options(reply.any) body = dict(sn=reply.sn, any=any.any, status=status(reply.exval), exception=exdict(reply.exval, reply), reply=None) nj = NotifyJournal() nj.write(reply.sn, any.replyto, body)
def succeeded(self, reply): log.info('succeeded: %s', reply) any = Options(reply.any) body = dict(sn=reply.sn, any=any.any, status=(200, HTTP_CODES[200]), reply=reply.retval, exception=None) nj = NotifyJournal() nj.write(reply.sn, any.replyto, body)
def succeeded(self, reply): log.info("succeeded: %s", reply) any = Options(reply.any) body = dict(sn=reply.sn, any=any.any, status=(200, HTTP_CODES[200]), reply=reply.retval, exception=None) nj = NotifyJournal() nj.write(reply.sn, any.replyto, body)