• Ozan Tezcan's avatar
    Refactor debug logging (#127) · e79d3b6a
    Ozan Tezcan authored
    Refactor debug logging and change log callback
    
    e.g:
    19 --> 13, sent snapshot_resp id:27712, t:24, s:1, o:4096, lc:0
    14 --> 17, sent requestvote_req pv:1, t:25, ci:14, lli:6848, llt:23
    14 <-- 17, recv requestvote_resp pv:1, t:25, rt:24, vg:0
    
    Breaking changes: 
    
    raft_log_f() callback will not pass node_id_t anymore.
    Sender and receiver will be part of the log line as you can see above.
    e79d3b6a
raft_private.h 6.18 KB