restore corrId errors

This commit is contained in:
IC Rainbow
2024-05-03 20:42:14 +03:00
parent e70b71abe0
commit f4952e4f49
+3 -3
View File
@@ -4720,9 +4720,9 @@ processAgentMessageConn vr user@User {userId} corrId agentConnId agentMessage =
| connId == cmdConnId' && (agentMsgTag == commandExpectedResponse cmdFunction || agentMsgTag == APCT SAEConn ERR_) -> do
withStore' $ \db -> deleteCommand db user cmdId
action cmdData
| otherwise -> logWarn $ "not matching connection id or unexpected response, corrId = " <> tshow corrId
Just CommandData {cmdId, cmdConnId = Nothing} -> logWarn $ "no command connection id, corrId = " <> tshow corrId
Nothing -> logWarn $ "command not found, corrId = " <> tshow corrId
| otherwise -> err cmdId $ "not matching connection id or unexpected response, corrId = " <> show corrId
Just CommandData {cmdId, cmdConnId = Nothing} -> err cmdId $ "no command connection id, corrId = " <> show corrId
Nothing -> logWarn $ "command not found, corrId = " <> ackKey
where
acId = AgentConnId agentConnId
ackKey = decodeLatin1 $ strEncode corrId