Skip to content

Commit

Permalink
fix #87
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Jan 14, 2019
1 parent 56d7d54 commit 58dcd63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/bert_serving/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ def push_new_job(_job_id, _json_msg, _msg_len):
while True:
try:
request = frontend.recv_multipart()
client, msg, req_id, msg_len = request
except ValueError:
self.logger.error('received a wrongly-formatted request (expected 4 frames, got %d)' % len(request))
self.logger.error('\n'.join('field %d: %s' % (idx, k) for idx, k in enumerate(request)), exc_info=True)
else:
client, msg, req_id, msg_len = request
server_status.update(request)
if msg == ServerCommand.terminate:
break
Expand Down

0 comments on commit 58dcd63

Please sign in to comment.