From 5a7ef65c56f745f1a95c2cb20f2576a7fd102d2b Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Thu, 15 Aug 2019 23:33:02 +0200 Subject: [PATCH] reduce debugging output --- owrx/aprs.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/owrx/aprs.py b/owrx/aprs.py index 1bdbdf4..d07cfc7 100644 --- a/owrx/aprs.py +++ b/owrx/aprs.py @@ -61,7 +61,7 @@ class AprsParser(object): # TODO how can we tell if this is an APRS frame at all? aprsData = self.parseAprsData(data) - logger.debug(aprsData) + logger.debug("decoded APRS data: %s", aprsData) if "lat" in aprsData and "lon" in aprsData: loc = LatLngLocation( aprsData["lat"], aprsData["lon"], aprsData["comment"] if "comment" in aprsData else None @@ -103,7 +103,6 @@ class AprsParser(object): return aprsData information = information.decode("us-ascii") - logger.debug(information) if information[0] == "!" or information[0] == "=": # position without timestamp @@ -220,16 +219,11 @@ class MicEParser(object): information = data["data"] destination = data["destination"] - logger.debug(destination) rawLatitude = [self.extractNumber(c) for c in destination[0:6]] - logger.debug(rawLatitude) lat = self.listToNumber(rawLatitude[0:2]) + self.listToNumber(rawLatitude[2:6]) / 6000 if ord(destination[3]) <= ord("9"): lat *= -1 - logger.debug(lat) - logger.debug(information) - lon = information[1] - 28 if ord(destination[4]) >= ord("P"): lon += 100