Add logging for previously processed line detection