7db6a2604d
If OSLO_CONFIG_SHOW_CODE_LOCATIONS is set to any non-empty string it will turn on the ability to see which file has the definition of an Opt or where set_default() was invoked. Change-Id: Ie705014dcf331e3c6b3367d2fefbfb9acc091799 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
922 B
922 B
Helper Functions
oslo_config.cfg
find_config_files
set_defaults
Showing detailed locations for configuration settings
oslo.config
can track the location in application and
library code where an option is defined, defaults are set, or values are
overridden. This feature is disabled by default because it is expensive
and incurs a significant performance penalty, but it can be useful for
developers tracing down issues with configuration option
definitions.
To turn on detailed location tracking, set the environment variable
OSLO_CONFIG_SHOW_CODE_LOCATIONS
to any non-empty value (for
example, "1"
or "yes, please"
) before starting
the application, test suite, or script. Then use ConfigOpts.get_location
to
access the location data for the option.