Brian Francis Cavlan and Rory Martin Logan were charged with collecting information likely to be of use to terrorists.