Jelajahi Sumber

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 tahun lalu
induk
melakukan
fb02c63cbb
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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 */