fix genlog protocol checks
testlog: more comments in code