Skip to content

Commit

Permalink
🎨 Improve format of some HB and ACKNACK messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Benito Palacios Sanchez committed Dec 15, 2016
1 parent 2050d9b commit e020029
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions logparser/network/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def on_send_preemptive_hb(match, state):
verb = 1 if is_builtin_entity(match[0]) else 0
log_send("",
writer_oid,
"Sent preemptive HB to acknowledge samples in [%d, %d]" %
"Sent preemptive HB to let know about samples in [%d, %d]" %
(sn_start, sn_end),
state,
verb)
Expand Down Expand Up @@ -286,12 +286,13 @@ def on_receive_ack(match, state):
reader_addr = parse_guid(state, remote[0], remote[1], remote[2])
reader_oid = get_oid(remote[3])
seqnum = parse_sn(match[2])
bitcount = int(match[3])
epoch = int(match[4])
verb = 1 if is_builtin_entity(match[0]) else 0
log_recv(reader_addr,
writer_oid,
"Received ACKNACK [%d] from reader %s for %d" %
(epoch, reader_oid, seqnum),
"Received ACKNACK [%d] from reader %s for %d +%d" %
(epoch, reader_oid, seqnum, bitcount),
state, verb)


Expand Down

0 comments on commit e020029

Please sign in to comment.