Selaa lähdekoodia

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 vuotta sitten
vanhempi
sitoutus
fb02c63cbb
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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 */