only log duplicate doc adds if debug log is true