infix icon indicating copy to clipboard operation
infix copied to clipboard

confd: debug diff per session

Open troglobit opened this issue 2 years ago • 0 comments

@wkz suggests we use the new hook feature to add a pre-hook that extracts the diff needed for all our callbacks. And when a debug flag is set dumps it once per session instead of for every callback:

puts("<<<");
lyd_print_file(stdout, diff, LYD_JSON, LYD_PRINT_WITHSIBLINGS);
puts(">>>");

troglobit avatar Aug 18 '23 13:08 troglobit