Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(frontend): flush dump
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Sep 24, 2019
1 parent fe7025f commit 304078a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gnes/service/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def remove_envelope(self, m: 'gnes_pb2.Message'):
self.logger.info('route table: \n%s' % make_route_table(m.envelope.routes, exclude_frontend=True))
if self.args.dump_route:
self.args.dump_route.write(MessageToJson(m.envelope, indent=0).replace('\n', '') + '\n')
self.args.dump_route.flush()
return resp

def Call(self, request, context):
Expand Down

0 comments on commit 304078a

Please sign in to comment.