Moved away from breaking out of the loop as this requires druidic knowledge about a method that could change in future

This commit is contained in:
Simon Pamies
2014-01-31 17:33:05 +01:00
parent 2937d4acee
commit 35b1ef4991
@@ -139,13 +139,17 @@ public class IgtimiWindReceiver implements BulkFixReceiver {
});
}
logger.fine("Received "+Util.size(awsFixes)+" wind fixes");
boolean loggedWindFixGenerationProblem = false;
for (AWS aws : awsFixes) {
try {
final Wind wind = getWind(aws.getTimePoint());
if (wind != null) {
notifyListeners(wind, aws.getSensor().getDeviceSerialNumber());
} else {
logger.info("Not enough information to build a Wind fix out of data provided. AWS received but most probably HDG or HDGM not received (yet) - check your compass.");
if (!loggedWindFixGenerationProblem) {
logger.info("Not enough information to build a Wind fix out of data provided. AWS received but most probably HDG or HDGM not received (yet) - check your compass.");
loggedWindFixGenerationProblem = true;
}
}
} catch (ClassNotFoundException | IOException | ParseException e) {
logger.log(Level.INFO, "Exception while trying to construct Wind fix from Igtimi fix " + aws, e);