Feature #2556

Feature #2555: Allow easy debugging of RSB configuration

Allow easy debugging of RSB configuration [C++]

Added by J. Moringen over 5 years ago. Updated over 5 years ago.

Status:ResolvedStart date:06/06/2016
Priority:NormalDue date:
Assignee:J. Moringen% Done:

100%

Category:C++
Target version:rsb-0.14

Description

Implementation could be something like this:

__CONFIG_DEBUG=1 opt/rsx-0.14/bin/rsb-loggercpp0.14 --scope /
Starting processing RSC-based logging configuration

Will configure with (lowest priority first)
  1. Configuration files
     1. Prefix wide config file "/home/jmoringe/opt/rsx-0.14/etc/rsb.conf" 
     2. User config file        "/home/jmoringe/.config/rsb.conf" 
     3. Current directory       ?
  2. Environment variables with prefix RSC_
  3. Properties from commandline options

Configuring
  does not exist 1.1 Prefix wide config file "/home/jmoringe/opt/rsx-0.14/etc/rsb.conf" 
  EXISTS         1.2 User config file "/home/jmoringe/.config/rsb.conf" 
  does not exist 1.3 Current directory file "rsb.conf" 
  NOT FOUND      2   Environment variables with prefix RSC_
  not received   3   Commandline options 

Finished processing RSC-based logging configuration

Starting processing plugin configuration

Will configure with (lowest priority first)
  1. Configuration files
     1. Prefix wide config file "/home/jmoringe/opt/rsx-0.14/etc/rsb.conf" 
     2. User config file        "/home/jmoringe/.config/rsb.conf" 
     3. Current directory       ?
  2. Environment variables with prefix RSB_
  3. Properties from commandline options

Configuring
  does not exist 1.1 Prefix wide config file "/home/jmoringe/opt/rsx-0.14/etc/rsb.conf" 
  EXISTS         1.2 User config file "/home/jmoringe/.config/rsb.conf" 
  does not exist 1.3 Current directory file "rsb.conf" 
  FOUND          2   Environment variables with prefix RSB_
                     #(introspection, enabled) -> 1
  not received   3   Commandline options 

Finished processing plugin configuration

Starting processing default participant configuration

Will configure with (lowest priority first)
  1. Configuration files
     1. Prefix wide config file "/home/jmoringe/opt/rsx-0.14/etc/rsb.conf" 
     2. User config file        "/home/jmoringe/.config/rsb.conf" 
     3. Current directory       ?
  2. Environment variables with prefix RSB_
  3. Properties from commandline options

Configuring
  does not exist 1.1 Prefix wide config file "/home/jmoringe/opt/rsx-0.14/etc/rsb.conf" 
  EXISTS         1.2 User config file "/home/jmoringe/.config/rsb.conf" 
  does not exist 1.3 Current directory file "rsb.conf" 
  FOUND          2   Environment variables with prefix RSB_
                     #(introspection, enabled) -> 1
  not received   3   Commandline options 

Finished processing default participant configuration

Default participant configuration
rsb::ParticipantConfig[qosSpec = QualityOfServiceSpec[ordering = 10, reliability = 20], errorStrategy = 0, transports = {Transport[name = socket, converters = {}, options = p{ enabled: "1" }], Transport[name = inprocess, converters = {}, options = p{ enabled: "0" }]}, eventReceivingStrategy = rsb::ParticipantConfig::EventProcessingStrategy[name = parallel, options = p{  }], eventSendingStrategy = rsb::ParticipantConfig::EventProcessingStrategy[name = direct, options = p{  }], options = p{  }]

Associated revisions

Revision 0ba6dc3f
Added by J. Moringen over 5 years ago

Configuration debugging support in src/rsb/Factory.cpp

fixes #2556

  • src/rsb/Factory.cpp (ConfigDebugPrinter): new struct; helper for
    configuration debugging in Factory constructor
    (Factory::Factory): enable configuration debugging when __CONFIG_DEBUG
    is set

Revision 0997691d
Added by J. Moringen over 5 years ago

Mention C++ configuration debugging in news.rst

refs #2556

  • news.rst (RSB 0.14): mention configuration debugging for the C++
    implementation

Revision 3ea7f7ad
Added by J. Moringen over 5 years ago

Config debug in {common-command-line-options,specification-config,troubleshooting,news}.rst

refs #2555, refs #2556

  • common-command-line-options.rst (Configuration Debugging): new
    section; describe __CONFIG_DEBUG environment variable
  • specification-config.rst (Configuration Debugging): new section;
    describe configuration debugging tools
  • troubleshooting.rst (Configuration Problems): new section; suggest
    configuration debugging tools to solve configuration problems
  • news.rst (RSB 0.14): reference configuration debugging section

Revision 7817e495
Added by J. Moringen over 5 years ago

Backport: Config debug in {common-command-line-options,specification-config,troubleshooting,news}.rst

refs #2555, refs #2556

  • common-command-line-options.rst (Configuration Debugging): new
    section; describe __CONFIG_DEBUG environment variable
  • specification-config.rst (Configuration Debugging): new section;
    describe configuration debugging tools
  • troubleshooting.rst (Configuration Problems): new section; suggest
    configuration debugging tools to solve configuration problems
  • news.rst (RSB 0.14): reference configuration debugging section

(cherry picked from commit 3ea7f7ad1af7030cb5e3675ea827f74d140a6712)

Revision 58f5b9b8
Added by J. Moringen over 5 years ago

Use RSB_CONFIG_{DEBUG,FILES} environment variables in src/rsb/Factory.{h,cpp}

refs #2566, refs #2556

  • src/rsb/Factory.{h,cpp} (CONFIG_DEBUG_ENVIRONMENT_VARIABLE): new constant;
    name of the environment variable controlling configuration debugging
    for RSB
    (CONFIG_FILES_ENVIRONEMNT_VARIABLE): new constant; similar for
    controlling configuration files
    (Factory::Factory): adapted to changes in Factory::provideConfigOptions
    (Factory::provideConfigOptions): use
    CONFIG_{DEBUG,FILES}_ENVIRONEMNT_VARIABLE
  • src/rsb/introspection/Plugin.cpp (header): updated copyright
    (RSC_PLUGIN_INIT_SIGNATURE): adapted to changes in
    Factory::provideConfigOptions

History

#1 Updated by J. Moringen over 5 years ago

  • Status changed from New to In Progress
  • Assignee set to J. Moringen
  • % Done changed from 0 to 80

#2 Updated by J. Moringen over 5 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 80 to 100

Also available in: Atom PDF