Procházet zdrojové kódy

reduced console noise

Leon Urbas před 10 roky
rodič
revize
39f9bcd462
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      examples/networklayer.c

+ 3 - 3
examples/networklayer.c

@@ -195,10 +195,10 @@ void* NL_TCP_reader(NL_Connection *c) {
 	}
 
 	UA_TL_Connection_getState(c->connection, &connectionState);
-	printf("NL_TCP_reader - connectionState=%d\n",connectionState);
+	DBG_VERBOSE(printf("NL_TCP_reader - connectionState=%d\n",connectionState));
 	if (connectionState == CONNECTIONSTATE_CLOSE) {
-		printf("NL_TCP_reader - closing connection");
-		// set connection's state to CONNECTIONSTATE_CLOSED and call callback
+		DBG_VERBOSE(printf("NL_TCP_reader - closing connection"));
+		// set connection's state to CONNECTIONSTATE_CLOSED and call callback to actually close
 		UA_TL_Connection_close(c->connection);
 #ifndef MULTITHREADING
 		DBG_VERBOSE(printf("NL_TCP_reader - search element to remove\n"));