Merge pull request #100 from eboasson/master
the "tracing" category in the configuration should only affect the "trace" sink and leave the "log" sink alone
This commit is contained in:
commit
4483807e71
18 changed files with 341 additions and 512 deletions
|
@ -77,7 +77,7 @@ dds_init(dds_domainid_t domain)
|
|||
dds_cfgst = config_init (uri);
|
||||
if (dds_cfgst == NULL)
|
||||
{
|
||||
DDS_ERROR("Failed to parse configuration XML file %s\n", uri);
|
||||
DDS_LOG(DDS_LC_CONFIG, "Failed to parse configuration XML file %s\n", uri);
|
||||
ret = DDS_ERRNO(DDS_RETCODE_ERROR);
|
||||
goto fail_config;
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ dds_init(dds_domainid_t domain)
|
|||
|
||||
if (rtps_config_prep(dds_cfgst) != 0)
|
||||
{
|
||||
DDS_ERROR("Failed to configure RTPS\n");
|
||||
DDS_LOG(DDS_LC_CONFIG, "Failed to configure RTPS\n");
|
||||
ret = DDS_ERRNO(DDS_RETCODE_ERROR);
|
||||
goto fail_rtps_config;
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ dds_init(dds_domainid_t domain)
|
|||
|
||||
if (rtps_init() < 0)
|
||||
{
|
||||
DDS_ERROR("Failed to initialize RTPS\n");
|
||||
DDS_LOG(DDS_LC_CONFIG, "Failed to initialize RTPS\n");
|
||||
ret = DDS_ERRNO(DDS_RETCODE_ERROR);
|
||||
goto fail_rtps_init;
|
||||
}
|
||||
|
|
|
@ -163,7 +163,7 @@ size_t dds_stream_check_optimize (_In_ const dds_topic_descriptor_t * desc)
|
|||
dds_sample_free_contents (sample, desc->m_ops);
|
||||
dds_free (sample);
|
||||
dds_stream_fini (&os);
|
||||
DDS_INFO("Marshalling for type: %s is%s optimised\n", desc->m_typename, size ? "" : " not");
|
||||
DDS_TRACE("Marshalling for type: %s is%s optimised\n", desc->m_typename, size ? "" : " not");
|
||||
return size;
|
||||
}
|
||||
|
||||
|
|
|
@ -242,7 +242,7 @@ static ddsi_tran_conn_t ddsi_raweth_create_conn (uint32_t port, ddsi_tran_qos_t
|
|||
uc->m_base.m_write_fn = ddsi_raweth_conn_write;
|
||||
uc->m_base.m_disable_multiplexing_fn = 0;
|
||||
|
||||
DDS_INFO("ddsi_raweth_create_conn %s socket %d port %u\n", mcast ? "multicast" : "unicast", uc->m_sock, uc->m_base.m_base.m_port);
|
||||
DDS_TRACE("ddsi_raweth_create_conn %s socket %d port %u\n", mcast ? "multicast" : "unicast", uc->m_sock, uc->m_base.m_base.m_port);
|
||||
return uc ? &uc->m_base : NULL;
|
||||
}
|
||||
|
||||
|
@ -294,7 +294,7 @@ static int ddsi_raweth_leave_mc (ddsi_tran_conn_t conn, const nn_locator_t *srcl
|
|||
static void ddsi_raweth_release_conn (ddsi_tran_conn_t conn)
|
||||
{
|
||||
ddsi_raweth_conn_t uc = (ddsi_raweth_conn_t) conn;
|
||||
DDS_INFO
|
||||
DDS_TRACE
|
||||
(
|
||||
"ddsi_raweth_release_conn %s socket %d port %d\n",
|
||||
conn->m_base.m_multicast ? "multicast" : "unicast",
|
||||
|
@ -359,7 +359,7 @@ static void ddsi_raweth_deinit(void)
|
|||
if (os_atomic_dec32_nv(&init_g) == 0) {
|
||||
if (ddsi_raweth_config_g.mship)
|
||||
free_group_membership(ddsi_raweth_config_g.mship);
|
||||
DDS_LOG(DDS_LC_INFO | DDS_LC_CONFIG, "raweth de-initialized\n");
|
||||
DDS_LOG(DDS_LC_CONFIG, "raweth de-initialized\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -396,7 +396,7 @@ int ddsi_raweth_init (void)
|
|||
|
||||
ddsi_raweth_config_g.mship = new_group_membership();
|
||||
|
||||
DDS_LOG(DDS_LC_INFO | DDS_LC_CONFIG, "raweth initialized\n");
|
||||
DDS_LOG(DDS_LC_CONFIG, "raweth initialized\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -132,9 +132,9 @@ static void ddsi_tcp_cache_dump (void)
|
|||
while (n)
|
||||
{
|
||||
os_sockaddrAddressPortToString ((const os_sockaddr *) &n->m_conn->m_peer_addr, buff, sizeof (buff));
|
||||
DDS_LOG
|
||||
DDS_TRACE
|
||||
(
|
||||
DDS_LC_INFO,
|
||||
DDS_LC_TCP,
|
||||
"%s cache #%d: %s sock %d port %u peer %s\n",
|
||||
ddsi_name, i++, n->m_conn->m_base.m_server ? "server" : "client",
|
||||
n->m_conn->m_sock, n->m_conn->m_base.m_base.m_port, buff
|
||||
|
@ -169,7 +169,7 @@ static void ddsi_tcp_sock_free (os_socket sock, const char * msg)
|
|||
{
|
||||
if (msg)
|
||||
{
|
||||
DDS_INFO("%s %s free socket %"PRIsock"\n", ddsi_name, msg, sock);
|
||||
DDS_LOG(DDS_LC_TCP, "%s %s free socket %"PRIsock"\n", ddsi_name, msg, sock);
|
||||
}
|
||||
os_sockFree (sock);
|
||||
}
|
||||
|
@ -227,7 +227,7 @@ static void ddsi_tcp_conn_connect (ddsi_tcp_conn_t conn, const struct msghdr * m
|
|||
#endif
|
||||
|
||||
sockaddr_to_string_with_port(buff, sizeof(buff), (os_sockaddr *) msg->msg_name);
|
||||
DDS_INFO("%s connect socket %"PRIsock" port %u to %s\n", ddsi_name, sock, get_socket_port (sock), buff);
|
||||
DDS_LOG(DDS_LC_TCP, "%s connect socket %"PRIsock" port %u to %s\n", ddsi_name, sock, get_socket_port (sock), buff);
|
||||
|
||||
/* Also may need to receive on connection so add to waitset */
|
||||
|
||||
|
@ -275,7 +275,7 @@ static void ddsi_tcp_cache_add (ddsi_tcp_conn_t conn, ut_avlIPath_t * path)
|
|||
}
|
||||
|
||||
sockaddr_to_string_with_port(buff, sizeof(buff), (os_sockaddr *)&conn->m_peer_addr);
|
||||
DDS_INFO("%s cache %s %s socket %"PRIsock" to %s\n", ddsi_name, action, conn->m_base.m_server ? "server" : "client", conn->m_sock, buff);
|
||||
DDS_LOG(DDS_LC_TCP, "%s cache %s %s socket %"PRIsock" to %s\n", ddsi_name, action, conn->m_base.m_server ? "server" : "client", conn->m_sock, buff);
|
||||
}
|
||||
|
||||
static void ddsi_tcp_cache_remove (ddsi_tcp_conn_t conn)
|
||||
|
@ -289,7 +289,7 @@ static void ddsi_tcp_cache_remove (ddsi_tcp_conn_t conn)
|
|||
if (node)
|
||||
{
|
||||
sockaddr_to_string_with_port(buff, sizeof(buff), (os_sockaddr *)&conn->m_peer_addr);
|
||||
DDS_INFO("%s cache removed socket %"PRIsock" to %s\n", ddsi_name, conn->m_sock, buff);
|
||||
DDS_LOG(DDS_LC_TCP, "%s cache removed socket %"PRIsock" to %s\n", ddsi_name, conn->m_sock, buff);
|
||||
ut_avlDeleteDPath (&ddsi_tcp_treedef, &ddsi_tcp_cache_g, node, &path);
|
||||
ddsi_tcp_node_free (node);
|
||||
}
|
||||
|
@ -643,20 +643,18 @@ static ssize_t ddsi_tcp_conn_write (ddsi_tran_conn_t base, const nn_locator_t *d
|
|||
else
|
||||
{
|
||||
piecewise = 0;
|
||||
if (err != os_sockECONNRESET)
|
||||
switch (err)
|
||||
{
|
||||
if (! conn->m_base.m_closed && (conn->m_sock != OS_INVALID_SOCKET))
|
||||
{
|
||||
DDS_WARNING
|
||||
(
|
||||
"%s write failed on socket %"PRIsock" with errno %d\n",
|
||||
ddsi_name, conn->m_sock, err
|
||||
);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DDS_LOG(DDS_LC_TCP, "%s write: sock %"PRIsock" ECONNRESET\n", ddsi_name, conn->m_sock);
|
||||
case os_sockECONNRESET:
|
||||
#ifdef os_sockEPIPE
|
||||
case os_sockEPIPE:
|
||||
#endif
|
||||
DDS_LOG(DDS_LC_TCP, "%s write: sock %"PRIsock" ECONNRESET\n", ddsi_name, conn->m_sock);
|
||||
break;
|
||||
default:
|
||||
if (! conn->m_base.m_closed && (conn->m_sock != OS_INVALID_SOCKET))
|
||||
DDS_WARNING("%s write failed on socket %"PRIsock" with errno %d\n", ddsi_name, conn->m_sock, err);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -802,7 +800,7 @@ static ddsi_tran_conn_t ddsi_tcp_accept (ddsi_tran_listener_t listener)
|
|||
else
|
||||
{
|
||||
sockaddr_to_string_with_port(buff, sizeof(buff), (os_sockaddr *)&addr);
|
||||
DDS_INFO("%s accept new socket %"PRIsock" on socket %"PRIsock" from %s\n", ddsi_name, sock, tl->m_sock, buff);
|
||||
DDS_LOG(DDS_LC_TCP, "%s accept new socket %"PRIsock" on socket %"PRIsock" from %s\n", ddsi_name, sock, tl->m_sock, buff);
|
||||
|
||||
os_sockSetNonBlocking (sock, true);
|
||||
tcp = ddsi_tcp_new_conn (sock, true, (os_sockaddr *)&addr);
|
||||
|
@ -910,7 +908,7 @@ static ddsi_tran_listener_t ddsi_tcp_create_listener (int port, ddsi_tran_qos_t
|
|||
}
|
||||
|
||||
sockaddr_to_string_with_port(buff, sizeof(buff), (os_sockaddr *)&addr);
|
||||
DDS_INFO("%s create listener socket %"PRIsock" on %s\n", ddsi_name, sock, buff);
|
||||
DDS_LOG(DDS_LC_TCP, "%s create listener socket %"PRIsock" on %s\n", ddsi_name, sock, buff);
|
||||
}
|
||||
|
||||
return tl ? &tl->m_base : NULL;
|
||||
|
@ -920,7 +918,7 @@ static void ddsi_tcp_conn_delete (ddsi_tcp_conn_t conn)
|
|||
{
|
||||
char buff[DDSI_LOCSTRLEN];
|
||||
sockaddr_to_string_with_port(buff, sizeof(buff), (os_sockaddr *)&conn->m_peer_addr);
|
||||
DDS_INFO("%s free %s connnection on socket %"PRIsock" to %s\n", ddsi_name, conn->m_base.m_server ? "server" : "client", conn->m_sock, buff);
|
||||
DDS_LOG(DDS_LC_TCP, "%s free %s connnection on socket %"PRIsock" to %s\n", ddsi_name, conn->m_base.m_server ? "server" : "client", conn->m_sock, buff);
|
||||
|
||||
#ifdef DDSI_INCLUDE_SSL
|
||||
if (ddsi_tcp_ssl_plugin.ssl_free)
|
||||
|
@ -944,7 +942,7 @@ static void ddsi_tcp_close_conn (ddsi_tran_conn_t tc)
|
|||
nn_locator_t loc;
|
||||
ddsi_tcp_conn_t conn = (ddsi_tcp_conn_t) tc;
|
||||
sockaddr_to_string_with_port(buff, sizeof(buff), (os_sockaddr *)&conn->m_peer_addr);
|
||||
DDS_INFO("%s close %s connnection on socket %"PRIsock" to %s\n", ddsi_name, conn->m_base.m_server ? "server" : "client", conn->m_sock, buff);
|
||||
DDS_LOG(DDS_LC_TCP, "%s close %s connnection on socket %"PRIsock" to %s\n", ddsi_name, conn->m_base.m_server ? "server" : "client", conn->m_sock, buff);
|
||||
(void) shutdown (conn->m_sock, 2);
|
||||
ddsi_ipaddr_to_loc(&loc, (os_sockaddr *)&conn->m_peer_addr, conn->m_peer_addr.ss_family == AF_INET ? NN_LOCATOR_KIND_TCPv4 : NN_LOCATOR_KIND_TCPv6);
|
||||
loc.port = conn->m_peer_port;
|
||||
|
@ -1037,7 +1035,7 @@ static void ddsi_tcp_release_factory (void)
|
|||
(ddsi_tcp_ssl_plugin.fini) ();
|
||||
}
|
||||
#endif
|
||||
DDS_LOG(DDS_LC_INFO | DDS_LC_CONFIG, "tcp de-initialized\n");
|
||||
DDS_LOG(DDS_LC_CONFIG, "tcp de-initialized\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -273,7 +273,7 @@ static ddsi_tran_conn_t ddsi_udp_create_conn
|
|||
uc->m_base.m_write_fn = ddsi_udp_conn_write;
|
||||
uc->m_base.m_disable_multiplexing_fn = ddsi_udp_disable_multiplexing;
|
||||
|
||||
DDS_INFO
|
||||
DDS_TRACE
|
||||
(
|
||||
"ddsi_udp_create_conn %s socket %"PRIsock" port %u\n",
|
||||
mcast ? "multicast" : "unicast",
|
||||
|
@ -396,7 +396,7 @@ static int ddsi_udp_leave_mc (ddsi_tran_conn_t conn, const nn_locator_t *srcloc,
|
|||
static void ddsi_udp_release_conn (ddsi_tran_conn_t conn)
|
||||
{
|
||||
ddsi_udp_conn_t uc = (ddsi_udp_conn_t) conn;
|
||||
DDS_INFO
|
||||
DDS_TRACE
|
||||
(
|
||||
"ddsi_udp_release_conn %s socket %"PRIsock" port %u\n",
|
||||
conn->m_base.m_multicast ? "multicast" : "unicast",
|
||||
|
@ -415,7 +415,7 @@ void ddsi_udp_fini (void)
|
|||
if(os_atomic_dec32_nv (&ddsi_udp_init_g) == 0) {
|
||||
free_group_membership(ddsi_udp_config_g.mship);
|
||||
memset (&ddsi_udp_factory_g, 0, sizeof (ddsi_udp_factory_g));
|
||||
DDS_LOG(DDS_LC_INFO | DDS_LC_CONFIG, "udp finalized\n");
|
||||
DDS_LOG(DDS_LC_CONFIG, "udp finalized\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -505,7 +505,7 @@ static void ddsi_udp_deinit(void)
|
|||
if (os_atomic_dec32_nv(&ddsi_udp_init_g) == 0) {
|
||||
if (ddsi_udp_config_g.mship)
|
||||
free_group_membership(ddsi_udp_config_g.mship);
|
||||
DDS_LOG(DDS_LC_INFO | DDS_LC_CONFIG, "udp de-initialized\n");
|
||||
DDS_LOG(DDS_LC_CONFIG, "udp de-initialized\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -550,7 +550,7 @@ int ddsi_udp_init (void)
|
|||
|
||||
ddsi_factory_add (&ddsi_udp_factory_g);
|
||||
|
||||
DDS_LOG(DDS_LC_INFO | DDS_LC_CONFIG, "udp initialized\n");
|
||||
DDS_LOG(DDS_LC_CONFIG, "udp initialized\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -2851,7 +2851,7 @@ struct cfgst * config_init
|
|||
case Q_CIPHER_NULL:
|
||||
/* nop */
|
||||
if ( s->key && strlen(s->key) > 0 ) {
|
||||
DDS_ERROR("config: DDSI2Service/Security/SecurityProfile[@cipherkey]: %s: cipher key not required\n", s->key);
|
||||
DDS_INFO("config: DDSI2Service/Security/SecurityProfile[@cipherkey]: %s: cipher key not required\n", s->key);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
@ -538,7 +538,7 @@ static int handle_SPDP_alive (const struct receiver_state *rst, nn_wctime_t time
|
|||
NN_BUILTIN_ENDPOINT_PARTICIPANT_MESSAGE_DATA_WRITER)) &&
|
||||
config.assume_rti_has_pmd_endpoints)
|
||||
{
|
||||
DDS_WARNING("data (SPDP, vendor %u.%u): assuming unadvertised PMD endpoints do exist\n",
|
||||
DDS_LOG(DDS_LC_DISCOVERY, "data (SPDP, vendor %u.%u): assuming unadvertised PMD endpoints do exist\n",
|
||||
rst->vendor.id[0], rst->vendor.id[1]);
|
||||
builtin_endpoint_set |=
|
||||
NN_BUILTIN_ENDPOINT_PARTICIPANT_MESSAGE_DATA_READER |
|
||||
|
@ -1837,9 +1837,9 @@ int builtins_dqueue_handler (const struct nn_rsample_info *sampleinfo, const str
|
|||
pid = PID_ENDPOINT_GUID;
|
||||
break;
|
||||
default:
|
||||
DDS_WARNING("data(builtin, vendor %u.%u): %x:%x:%x:%x #%"PRId64": mapping keyhash to ENDPOINT_GUID",
|
||||
sampleinfo->rst->vendor.id[0], sampleinfo->rst->vendor.id[1],
|
||||
PGUID (srcguid), sampleinfo->seq);
|
||||
DDS_LOG(DDS_LC_DISCOVERY, "data(builtin, vendor %u.%u): %x:%x:%x:%x #%"PRId64": mapping keyhash to ENDPOINT_GUID",
|
||||
sampleinfo->rst->vendor.id[0], sampleinfo->rst->vendor.id[1],
|
||||
PGUID (srcguid), sampleinfo->seq);
|
||||
pid = PID_ENDPOINT_GUID;
|
||||
break;
|
||||
}
|
||||
|
@ -1882,9 +1882,9 @@ int builtins_dqueue_handler (const struct nn_rsample_info *sampleinfo, const str
|
|||
handle_SEDP_GROUP (sampleinfo->rst, timestamp, statusinfo, datap, datasz);
|
||||
break;
|
||||
default:
|
||||
DDS_WARNING ("data(builtin, vendor %u.%u): %x:%x:%x:%x #%"PRId64": not handled\n",
|
||||
sampleinfo->rst->vendor.id[0], sampleinfo->rst->vendor.id[1],
|
||||
PGUID (srcguid), sampleinfo->seq);
|
||||
DDS_LOG (DDS_LC_DISCOVERY, "data(builtin, vendor %u.%u): %x:%x:%x:%x #%"PRId64": not handled\n",
|
||||
sampleinfo->rst->vendor.id[0], sampleinfo->rst->vendor.id[1],
|
||||
PGUID (srcguid), sampleinfo->seq);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -2753,7 +2753,7 @@ static void new_writer_guid_common_init (struct writer *wr, const struct ddsi_se
|
|||
if (wr->xqos->liveliness.kind != NN_AUTOMATIC_LIVELINESS_QOS ||
|
||||
nn_from_ddsi_duration (wr->xqos->liveliness.lease_duration) != T_NEVER)
|
||||
{
|
||||
DDS_LOG(DDS_LC_INFO | DDS_LC_DISCOVERY, "writer %x:%x:%x:%x: incorrectly treating it as of automatic liveliness kind with lease duration = inf (%d, %"PRId64")\n", PGUID (wr->e.guid), (int) wr->xqos->liveliness.kind, nn_from_ddsi_duration (wr->xqos->liveliness.lease_duration));
|
||||
DDS_LOG(DDS_LC_DISCOVERY, "writer %x:%x:%x:%x: incorrectly treating it as of automatic liveliness kind with lease duration = inf (%d, %"PRId64")\n", PGUID (wr->e.guid), (int) wr->xqos->liveliness.kind, nn_from_ddsi_duration (wr->xqos->liveliness.lease_duration));
|
||||
}
|
||||
wr->lease_duration = T_NEVER; /* FIXME */
|
||||
|
||||
|
@ -3237,7 +3237,7 @@ static struct reader * new_reader_guid
|
|||
if (rd->xqos->liveliness.kind != NN_AUTOMATIC_LIVELINESS_QOS ||
|
||||
nn_from_ddsi_duration (rd->xqos->liveliness.lease_duration) != T_NEVER)
|
||||
{
|
||||
DDS_LOG(DDS_LC_INFO | DDS_LC_DISCOVERY, "reader %x:%x:%x:%x: incorrectly treating it as of automatic liveliness kind with lease duration = inf (%d, %"PRId64")\n", PGUID (rd->e.guid), (int) rd->xqos->liveliness.kind, nn_from_ddsi_duration (rd->xqos->liveliness.lease_duration));
|
||||
DDS_LOG(DDS_LC_DISCOVERY, "reader %x:%x:%x:%x: incorrectly treating it as of automatic liveliness kind with lease duration = inf (%d, %"PRId64")\n", PGUID (rd->e.guid), (int) rd->xqos->liveliness.kind, nn_from_ddsi_duration (rd->xqos->liveliness.lease_duration));
|
||||
}
|
||||
|
||||
#ifdef DDSI_INCLUDE_NETWORK_PARTITIONS
|
||||
|
|
|
@ -454,7 +454,6 @@ int rtps_config_open (void)
|
|||
}
|
||||
|
||||
dds_set_log_mask(config.enabled_logcats);
|
||||
dds_set_log_file(config.tracingOutputFile);
|
||||
dds_set_trace_file(config.tracingOutputFile);
|
||||
|
||||
return status;
|
||||
|
@ -487,7 +486,7 @@ int rtps_config_prep (struct cfgst *cfgst)
|
|||
inherited by readers/writers), but in many sockets mode each
|
||||
participant has its own socket, and therefore unique address
|
||||
set */
|
||||
DDS_ERROR("Minimal built-in endpoint set mode and ManySocketsMode are incompatible\n");
|
||||
DDS_ERROR ("Minimal built-in endpoint set mode and ManySocketsMode are incompatible\n");
|
||||
goto err_config_late_error;
|
||||
}
|
||||
|
||||
|
@ -513,11 +512,11 @@ int rtps_config_prep (struct cfgst *cfgst)
|
|||
{
|
||||
double max = (double) config.auxiliary_bandwidth_limit * ((double) config.nack_delay / 1e9);
|
||||
if (max < 0)
|
||||
DDS_FATAL("AuxiliaryBandwidthLimit * NackDelay = %g bytes is insane\n", max);
|
||||
if (max > 2147483647.0)
|
||||
config.max_queued_rexmit_bytes = 2147483647u;
|
||||
else
|
||||
config.max_queued_rexmit_bytes = (unsigned) max;
|
||||
{
|
||||
DDS_ERROR ("AuxiliaryBandwidthLimit * NackDelay = %g bytes is insane\n", max);
|
||||
goto err_config_late_error;
|
||||
}
|
||||
config.max_queued_rexmit_bytes = max > 2147483647.0 ? 2147483647u : (unsigned) max;
|
||||
}
|
||||
#else
|
||||
config.max_queued_rexmit_bytes = 2147483647u;
|
||||
|
@ -527,7 +526,7 @@ int rtps_config_prep (struct cfgst *cfgst)
|
|||
/* Verify thread properties refer to defined threads */
|
||||
if (!check_thread_properties ())
|
||||
{
|
||||
DDS_ERROR("Could not initialise configuration\n");
|
||||
DDS_TRACE ("Could not initialise configuration\n");
|
||||
goto err_config_late_error;
|
||||
}
|
||||
|
||||
|
@ -551,8 +550,7 @@ int rtps_config_prep (struct cfgst *cfgst)
|
|||
|
||||
if (config.transport_selector != TRANS_UDP && chptr->diffserv_field != 0)
|
||||
{
|
||||
DDS_ERROR("channel %s specifies IPv4 DiffServ settings which is incompatible with IPv6 use\n",
|
||||
chptr->name);
|
||||
DDS_ERROR ("channel %s specifies IPv4 DiffServ settings which is incompatible with IPv6 use\n", chptr->name);
|
||||
error = 1;
|
||||
}
|
||||
|
||||
|
@ -575,7 +573,7 @@ int rtps_config_prep (struct cfgst *cfgst)
|
|||
printed */
|
||||
if (! rtps_config_open ())
|
||||
{
|
||||
DDS_ERROR("Could not initialise configuration\n");
|
||||
DDS_TRACE ("Could not initialise configuration\n");
|
||||
goto err_config_late_error;
|
||||
}
|
||||
|
||||
|
@ -891,7 +889,7 @@ int rtps_init (void)
|
|||
tv.tv_sec = sec;
|
||||
tv.tv_nsec = usec * 1000;
|
||||
os_ctime_r (&tv, str, sizeof(str));
|
||||
DDS_LOG(DDS_LC_INFO | DDS_LC_CONFIG, "started at %d.06%d -- %s\n", sec, usec, str);
|
||||
DDS_LOG(DDS_LC_CONFIG, "started at %d.06%d -- %s\n", sec, usec, str);
|
||||
}
|
||||
|
||||
/* Initialize thread pool */
|
||||
|
@ -940,7 +938,8 @@ int rtps_init (void)
|
|||
|
||||
if (!find_own_ip (config.networkAddressString))
|
||||
{
|
||||
DDS_ERROR("No network interface selected\n");
|
||||
/* find_own_ip already logs a more informative error message */
|
||||
DDS_LOG(DDS_LC_CONFIG, "No network interface selected\n");
|
||||
goto err_find_own_ip;
|
||||
}
|
||||
if (config.allowMulticast)
|
||||
|
|
|
@ -1866,9 +1866,8 @@ static int do_guid (nn_guid_t *dst, uint64_t *present, uint64_t fl, int (*valid)
|
|||
if (fl == PP_PARTICIPANT_GUID && vendor_is_twinoaks (dd->vendorid) &&
|
||||
dst->entityid.u == 0 && ! NN_STRICT_P)
|
||||
{
|
||||
DDS_WARNING("plist(vendor %u.%u): rewriting invalid participant guid %x:%x:%x:%x\n",
|
||||
dd->vendorid.id[0], dd->vendorid.id[1],
|
||||
dst->prefix.u[0], dst->prefix.u[1], dst->prefix.u[2], dst->entityid.u);
|
||||
DDS_LOG(DDS_LC_DISCOVERY, "plist(vendor %u.%u): rewriting invalid participant guid %x:%x:%x:%x\n",
|
||||
dd->vendorid.id[0], dd->vendorid.id[1], PGUID (*dst));
|
||||
dst->entityid.u = NN_ENTITYID_PARTICIPANT;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -799,18 +799,9 @@ static int handle_AckNack (struct receiver_state *rst, nn_etime_t tnow, const Ac
|
|||
nn_wctime_t tstamp_now = now ();
|
||||
nn_wctime_t tstamp_msg = nn_wctime_from_ddsi_time (timestamp);
|
||||
nn_lat_estim_update (&rn->hb_to_ack_latency, tstamp_now.v - tstamp_msg.v);
|
||||
if ((dds_get_log_mask() & (DDS_LC_TRACE | DDS_LC_INFO)) &&
|
||||
tstamp_now.v > rn->hb_to_ack_latency_tlastlog.v + 10 * T_SECOND)
|
||||
if ((dds_get_log_mask() & DDS_LC_TRACE) && tstamp_now.v > rn->hb_to_ack_latency_tlastlog.v + 10 * T_SECOND)
|
||||
{
|
||||
if (dds_get_log_mask() & DDS_LC_TRACE)
|
||||
nn_lat_estim_log (DDS_LC_TRACE, NULL, &rn->hb_to_ack_latency);
|
||||
else if (dds_get_log_mask() & DDS_LC_INFO)
|
||||
{
|
||||
char tagbuf[2*(4*8+3) + 4 + 1];
|
||||
(void) snprintf (tagbuf, sizeof (tagbuf), "%x:%x:%x:%x -> %x:%x:%x:%x", PGUID (src), PGUID (dst));
|
||||
if (nn_lat_estim_log (DDS_LC_INFO, tagbuf, &rn->hb_to_ack_latency))
|
||||
DDS_LOG(DDS_LC_INFO, "\n");
|
||||
}
|
||||
nn_lat_estim_log (DDS_LC_TRACE, NULL, &rn->hb_to_ack_latency);
|
||||
rn->hb_to_ack_latency_tlastlog = tstamp_now;
|
||||
}
|
||||
}
|
||||
|
@ -856,7 +847,7 @@ static int handle_AckNack (struct receiver_state *rst, nn_etime_t tnow, const Ac
|
|||
rn->seq = wr->seq;
|
||||
}
|
||||
ut_avlAugmentUpdate (&wr_readers_treedef, rn);
|
||||
DDS_WARNING("writer %x:%x:%x:%x considering reader %x:%x:%x:%x responsive again\n", PGUID (wr->e.guid), PGUID (rn->prd_guid));
|
||||
DDS_LOG(DDS_LC_THROTTLE, "writer %x:%x:%x:%x considering reader %x:%x:%x:%x responsive again\n", PGUID (wr->e.guid), PGUID (rn->prd_guid));
|
||||
}
|
||||
|
||||
/* Second, the NACK bits (literally, that is). To do so, attempt to
|
||||
|
|
|
@ -116,7 +116,7 @@ static uint32_t lease_renewal_thread (struct nn_servicelease *sl)
|
|||
msg = "failed to make progress";
|
||||
else
|
||||
msg = "once again made progress";
|
||||
DDS_WARNING("thread %s %s\n", name ? name : "(anon)", msg);
|
||||
DDS_INFO("thread %s %s\n", name ? name : "(anon)", msg);
|
||||
sl->av_ary[i].alive = (char) alive;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -135,7 +135,7 @@ lookup_thread_state(
|
|||
os_osInit();
|
||||
ts1->extTid = tid;
|
||||
ts1->tid = tid;
|
||||
DDS_LOG(DDS_LC_INFO, "started application thread %s\n", tname);
|
||||
DDS_LOG(DDS_LC_TRACE, "started application thread %s\n", tname);
|
||||
os_threadCleanupPush(&cleanup_thread_state, NULL);
|
||||
}
|
||||
os_mutexUnlock(&thread_states.lock);
|
||||
|
@ -275,7 +275,7 @@ struct thread_state1 *create_thread (_In_z_ const char *name, _In_ uint32_t (*f)
|
|||
DDS_FATAL("create_thread: %s: os_threadCreate failed\n", name);
|
||||
goto fatal;
|
||||
}
|
||||
DDS_LOG(DDS_LC_INFO, "started new thread 0x%"PRIxMAX" : %s\n", os_threadIdToInteger (tid), name);
|
||||
DDS_LOG(DDS_LC_TRACE, "started new thread 0x%"PRIxMAX" : %s\n", os_threadIdToInteger (tid), name);
|
||||
ts1->extTid = tid; /* overwrite the temporary value with the correct external one */
|
||||
os_mutexUnlock (&thread_states.lock);
|
||||
return ts1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue