add debug log for file scan if #scanned > #total