Explorar o código

fix client handle logging

WoutvdBerg %!s(int64=7) %!d(string=hai) anos
pai
achega
c311213293
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/client/ua_client_highlevel_subscriptions.c

+ 1 - 1
src/client/ua_client_highlevel_subscriptions.c

@@ -191,7 +191,7 @@ addMonitoredItems(UA_Client *client, const UA_UInt32 subscriptionId,
         newMonitoredItemIds[i] = newMon->monitoredItemId;
         newMonitoredItemIds[i] = newMon->monitoredItemId;
         UA_LOG_DEBUG(client->config.logger, UA_LOGCATEGORY_CLIENT,
         UA_LOG_DEBUG(client->config.logger, UA_LOGCATEGORY_CLIENT,
                      "Created a monitored item with client handle %u",
                      "Created a monitored item with client handle %u",
-                     client->monitoredItemHandles);
+                     newMon->clientHandle);
     }
     }
 
 
  cleanup:
  cleanup: