• Jakob Unterwurzacher's avatar
    fuse: improve BATCH_FORGET debug log output · 8020c188
    Jakob Unterwurzacher authored
    Node numbers are now written as "i1234" everywhere except in the
    BATCH_FORGET output, fix that. Also show the transaction number
    so we can follow where each forget comes from.
    
    As a normal FORGET looks like this:
    
    	2019/01/27 14:38:07 rx 1488: FORGET i822 {Nlookup=1}
    
    with the new output, "grep FORGET i1234 " will catch both single forgets
    and batch forgets.
    
    Before:
    
    	2019/01/20 18:15:31 rx 1372: BATCH_FORGET i0 {Count=3}  48b
    	2019/01/20 18:15:31 doBatchForget: forgetting 1 of 3: NodeId: 40, Nlookup: 1
    	2019/01/20 18:15:31 doBatchForget: forgetting 2 of 3: NodeId: 41, Nlookup: 1
    	2019/01/20 18:15:31 doBatchForget: forgetting 3 of 3: NodeId: 42, Nlookup: 1
    
    After:
    
    	2019/01/27 14:48:35 rx 2982: BATCH_FORGET i0 {Count=2}  32b
    	2019/01/27 14:48:35 doBatchForget: rx 2982 1/2: FORGET i804 {Nlookup=1}
    	2019/01/27 14:48:35 doBatchForget: rx 2982 2/2: FORGET i803 {Nlookup=1}
    8020c188
opcode.go 24.2 KB