Adapted logging for wind generation issues

This commit is contained in:
Simon Pamies
2014-01-31 17:12:55 +01:00
parent dda547fd95
commit 238b34b435
@@ -138,12 +138,14 @@ public class IgtimiWindReceiver implements BulkFixReceiver {
}
});
}
logger.info("Received "+Util.size(awsFixes)+" wind fixes");
logger.fine("Received "+Util.size(awsFixes)+" wind fixes");
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.");
}
} catch (ClassNotFoundException | IOException | ParseException e) {
logger.log(Level.INFO, "Exception while trying to construct Wind fix from Igtimi fix " + aws, e);