Parcourir la source

Warn on open connection failures

Increase the condition reporting on open connection failures from
informative to warn. Also include the extended status in the warning
for easier triage on what caused the connection failure in the first
place.
Bart Vanhauwaert il y a 4 ans
Parent
commit
fb02c63cbb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      source/src/cip/cipconnectionmanager.c

+ 1 - 1
source/src/cip/cipconnectionmanager.c

@@ -1006,7 +1006,7 @@ EipStatus AssembleForwardOpenResponse(CipConnectionObject *connection_object,
                      &message_router_response->message);
   } else {
     /* we have an connection creation error */
-    OPENER_TRACE_INFO("AssembleForwardOpenResponse: sending error response\n");
+    OPENER_TRACE_WARN("AssembleForwardOpenResponse: sending error response, general/extended status=%d/%d\n", general_status, extended_status);
     ConnectionObjectSetState(connection_object,
                              kConnectionObjectStateNonExistent);
     /* Expected data length is 10 octets */