Преглед на файлове

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 години
родител
ревизия
fb02c63cbb
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 */