Proper logging.

This commit is contained in:
Marat Fayzullin 2023-02-15 16:40:26 -05:00
parent 8bad5819ad
commit b188a55d15
1 changed files with 5 additions and 1 deletions

View File

@ -117,10 +117,14 @@ class SstvParser(ThreadModule):
# Wait until we find the closing bracket
w = self.data.find(b']')
if w>=0:
# Extract message contents
msg = self.data[0:w+1].decode()
# Log message
logger.debug(msg)
# Compose result
out = {
"mode": "SSTV",
"message": self.data[0:w+1].decode()
"message": msg
}
# Remove parsed data
del self.data[0:w+1]