Neater config retreival

pull/5544/head
Jorik Schellekens 2019-07-02 09:03:42 +01:00
parent 4bf9e1188f
commit 941b655e40
1 changed files with 1 additions and 3 deletions

View File

@ -20,9 +20,7 @@ class TracerConfig(Config):
def read_config(self, config, **kwargs):
self.tracer_config = config.get("opentracing")
if self.tracer_config is None:
# If the tracer is not configured we assume it is disabled
self.tracer_config = {"tracer_enabled": False}
self.tracer_config = config.get("opentracing", {"tracer_enabled": False})
if self.tracer_config.get("tracer_enabled", False):
# The tracer is enabled so sanitize the config