fix: log invalid signals received
This commit is contained in:
parent
955826d6de
commit
8dc7f1dd62
|
@ -38,8 +38,14 @@ QtObject:
|
||||||
self.signalSubscribers[signalType].add(subscriber)
|
self.signalSubscribers[signalType].add(subscriber)
|
||||||
|
|
||||||
proc processSignal(self: SignalsController) =
|
proc processSignal(self: SignalsController) =
|
||||||
let jsonSignal = (self.statusSignal).parseJson
|
var jsonSignal:JsonNode
|
||||||
let signalString = $jsonSignal["type"].getStr
|
try:
|
||||||
|
jsonSignal = self.statusSignal.parseJson
|
||||||
|
except:
|
||||||
|
error "Invalid signal received", data = self.statusSignal
|
||||||
|
return
|
||||||
|
|
||||||
|
let signalString = jsonSignal["type"].getStr
|
||||||
|
|
||||||
trace "Raw signal data", data = $jsonSignal
|
trace "Raw signal data", data = $jsonSignal
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue