Przeglądaj źródła

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 4 lat temu
rodzic
commit
fb02c63cbb
1 zmienionych plików z 1 dodań i 1 usunięć
  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 */