debug comment length

This commit is contained in:
Ed Sandor 2020-12-12 10:15:26 -07:00
parent 11bb04419b
commit f83790a5be

View File

@ -60,6 +60,7 @@ IGLOGIN {callsign} {password}
offset = "OFFSET=" + str(pm["aprs_igate_offset"]) if "aprs_igate_offset" in pm else "" offset = "OFFSET=" + str(pm["aprs_igate_offset"]) if "aprs_igate_offset" in pm else ""
comment = str(pm["aprs_igate_comment"]) if "aprs_igate_comment" in pm else "\"OpenWebRX APRS gateway\"" comment = str(pm["aprs_igate_comment"]) if "aprs_igate_comment" in pm else "\"OpenWebRX APRS gateway\""
logger.info(str(len(comment)))
if((len(comment) > 0) and ((comment[0] != '"') or (comment[len(comment)-1] != '"'))): if((len(comment) > 0) and ((comment[0] != '"') or (comment[len(comment)-1] != '"'))):
logger.info(comment) logger.info(comment)
comment = "\"" + comment + "\"" comment = "\"" + comment + "\""