Skip to content

Commit

Permalink
Merge pull request #395 from jwillemsen/jwi-silentnddslogging
Browse files Browse the repository at this point in the history
Redirect some RTI Connext DDS logging to a log file
  • Loading branch information
jwillemsen authored May 16, 2023
2 parents cfd865a + d53f8e9 commit da0379d
Show file tree
Hide file tree
Showing 11 changed files with 94 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
-->
<dds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="rti_dds_qos_profiles.xsd" version="5.2.3">
<qos_library name="defaultlibrary">
<qos_profile name="SilentLogging" is_default_participant_factory_profile="true">
<!--
This test triggers RTI Connext DDS errors because it tests possible error situations, redirect the default logging
to nddslogging.log.
-->
<participant_factory_qos>
<logging>
<output_file>nddslogging.log</output_file>
</logging>
</participant_factory_qos>
</qos_profile>
<qos_profile name="defaultprofile" is_default_qos="false">
<participant_qos>
<transport_builtin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
-->
<dds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="rti_dds_qos_profiles.xsd" version="5.2.3">
<qos_library name="defaultlibrary">
<qos_profile name="SilentLogging" is_default_participant_factory_profile="true">
<!--
This test triggers RTI Connext DDS errors because it tests possible error situations, redirect the default logging
to nddslogging.log.
-->
<participant_factory_qos>
<logging>
<output_file>nddslogging.log</output_file>
</logging>
</participant_factory_qos>
</qos_profile>
<qos_profile name="defaultprofile" is_default_qos="false">
<participant_qos>
<transport_builtin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
-->
<dds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="rti_dds_qos_profiles.xsd" version="5.2.3">
<qos_library name="defaultlibrary">
<qos_profile name="SilentLogging" is_default_participant_factory_profile="true">
<!--
This test triggers RTI Connext DDS errors because it tests possible error situations, redirect the default logging
to nddslogging.log.
-->
<participant_factory_qos>
<logging>
<output_file>nddslogging.log</output_file>
</logging>
</participant_factory_qos>
</qos_profile>
<qos_profile name="defaultprofile" is_default_qos="false">
<participant_qos>
<transport_builtin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
-->
<dds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="rti_dds_qos_profiles.xsd" version="5.2.3">
<qos_library name="defaultlibrary">
<qos_profile name="SilentLogging" is_default_participant_factory_profile="true">
<!--
This test triggers RTI Connext DDS errors because it tests possible error situations, redirect the default logging
to nddslogging.log.
-->
<participant_factory_qos>
<logging>
<output_file>nddslogging.log</output_file>
</logging>
</participant_factory_qos>
</qos_profile>
<qos_profile name="defaultprofile" is_default_qos="false">
<participant_qos>
<transport_builtin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
-->
<dds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="rti_dds_qos_profiles.xsd" version="5.2.3">
<qos_library name="samplelostlibrary">
<qos_profile name="SilentLogging" is_default_participant_factory_profile="true">
<!--
This test triggers RTI Connext DDS errors because it tests possible error situations, redirect the default logging
to nddslogging.log.
-->
<participant_factory_qos>
<logging>
<output_file>nddslogging.log</output_file>
</logging>
</participant_factory_qos>
</qos_profile>
<qos_profile name="SampleLostProfile" is_default_qos="false">
<!-- QoS used to configure the data writer created in the example code -->
<participant_qos>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
-->
<dds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="rti_dds_qos_profiles.xsd" version="5.2.3">
<qos_library name="unkeyedwriterlibrary">
<qos_profile name="SilentLogging" is_default_participant_factory_profile="true">
<!--
This test triggers RTI Connext DDS errors because it tests possible error situations, redirect the default logging
to nddslogging.log.
-->
<participant_factory_qos>
<logging>
<output_file>nddslogging.log</output_file>
</logging>
</participant_factory_qos>
</qos_profile>
<qos_profile name="UnkeyedWriterProfile" is_default_qos="false">
<participant_qos>
<transport_builtin>
Expand Down
11 changes: 11 additions & 0 deletions ddsx11/tests/builtin/descriptors/USER_QOS_PROFILES.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
-->
<dds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="rti_dds_qos_profiles.xsd" version="5.2.3">
<qos_library name="shapes">
<qos_profile name="SilentLogging" is_default_participant_factory_profile="true">
<!--
This test triggers RTI Connext DDS errors because it tests possible error situations, redirect the default logging
to nddslogging.log.
-->
<participant_factory_qos>
<logging>
<output_file>nddslogging.log</output_file>
</logging>
</participant_factory_qos>
</qos_profile>
<qos_profile name="ShapesProfile" is_default_qos="false">
<participant_qos>
<transport_builtin>
Expand Down
2 changes: 1 addition & 1 deletion exf/brix/exf/apc/ports/port_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
#--------------------------------------------------------------------

# load all interaction pattern port type implementations
Dir.glob(File.join(File.dirname(__FILE__), 'port_types', '*.rb')).each do |fnm|
Dir.glob(File.join(File.dirname(__FILE__), 'port_types', '*.rb')).sort.each do |fnm|
require fnm
end
5 changes: 3 additions & 2 deletions exf/brix/exf/apc/ports/port_types/corba4ccm_port.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,16 @@ module DataInteractionHandler
def self.setup_data(recipe, fidl)
# does the IDL file need full skeletons?
if fidl.properties[:needs_skel]
if mpc_idl_obj = recipe.mpc_file[:skel_gen]
mpc_idl_obj = recipe.mpc_file[:skel_gen]
if mpc_idl_obj
# check if ExF support flag needs to be added
mpc_idl_obj.base_projects << 'ciaox11_exf_idl' if fidl.properties[:exf_skel]
# now update the skel compiler project
mpc_skel_obj = recipe.mpc_file[:skel]
# do we need ExF base project?
mpc_skel_obj.base_projects << 'ciaox11_exf_amh' if fidl.properties[:exf_skel]
# could be that we add this multiple times but that is no problem as
# #base_projects is a unique string list
# base_projects is a unique string list
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions exf/brix/exf/apc/require.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
#--------------------------------------------------------------------

# load all recipe specializations
Dir.glob(File.join(File.dirname(__FILE__), 'recipes', '*.rb')).each do |fnm|
Dir.glob(File.join(File.dirname(__FILE__), 'recipes', '*.rb')).sort.each do |fnm|
require fnm
end

# load all port implementations
Dir.glob(File.join(File.dirname(__FILE__), 'ports', '*.rb')).each do |fnm|
Dir.glob(File.join(File.dirname(__FILE__), 'ports', '*.rb')).sort.each do |fnm|
require fnm
end
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
-->
<dds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="rti_dds_qos_profiles.xsd" version="5.2.3">
<qos_library name="unkeyedwriterlibrary">
<qos_profile name="SilentLogging" is_default_participant_factory_profile="true">
<!--
This test triggers RTI Connext DDS errors because it tests possible error situations, redirect the default logging
to nddslogging.log.
-->
<participant_factory_qos>
<logging>
<output_file>nddslogging.log</output_file>
</logging>
</participant_factory_qos>
</qos_profile>
<qos_profile name="UnkeyedWriterProfile" is_default_qos="false">
<participant_qos>
<transport_builtin>
Expand Down

0 comments on commit da0379d

Please sign in to comment.