Adding more debugging.
This commit is contained in:
parent
8fdbf90303
commit
8b226a9727
|
|
@ -19,9 +19,10 @@ class DscParser(TextParser):
|
||||||
if self.service:
|
if self.service:
|
||||||
return None
|
return None
|
||||||
# Expect JSON data in text form
|
# Expect JSON data in text form
|
||||||
|
logger.debug("TEXT: {0}".format(msg))
|
||||||
out = json.loads(msg)
|
out = json.loads(msg)
|
||||||
# Add mode name and a color to identify the sender
|
# Add mode name and a color to identify the sender
|
||||||
out["mode"] = "DSC"
|
out["mode"] = "DSC"
|
||||||
out["color"] = self.colors.getColor(out["src"])
|
out["color"] = self.colors.getColor(out["src"])
|
||||||
logger.debug("{0}".format(out))
|
logger.debug("JSON: {0}".format(out))
|
||||||
return out
|
return out
|
||||||
|
|
|
||||||
|
|
@ -81,8 +81,9 @@ class TextParser(LineBasedModule):
|
||||||
|
|
||||||
# Compose name of this decoder, made of client/service and frequency
|
# Compose name of this decoder, made of client/service and frequency
|
||||||
def myName(self):
|
def myName(self):
|
||||||
return "%s%s" % (
|
return "%s%s%s" % (
|
||||||
"Service" if self.service else "Client",
|
"Service" if self.service else "Client",
|
||||||
|
" " + self.filePfx if self.filePfx else "",
|
||||||
" at %dkHz" % (self.frequency // 1000) if self.frequency>0 else ""
|
" at %dkHz" % (self.frequency // 1000) if self.frequency>0 else ""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue