the "tracing" category in the configuration should only affect the "trace" sink and leave the "log" sink alone
Fixing that produces a lot of noise on stderr because of inappropriate use of the "info" category in various place and, on macOS, because of a rather stupid way of messing with thread scheduling priorities even when none have been specified explicitly in the configuration. Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
29f0ef6e17
commit
c35c5f9190
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue