From 35b35acba8772858e6ca3ac6d3605d767fd7a067 Mon Sep 17 00:00:00 2001 From: Matt Leinhos Date: Mon, 4 Mar 2019 11:20:27 -0600 Subject: [PATCH] Added log message to wrapper about VIRTUE_ID source. --- sensors/wrapper/sensor_wrapper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sensors/wrapper/sensor_wrapper.py b/sensors/wrapper/sensor_wrapper.py index 5ec4169..55eef76 100644 --- a/sensors/wrapper/sensor_wrapper.py +++ b/sensors/wrapper/sensor_wrapper.py @@ -1126,6 +1126,8 @@ def check_identification(self): if self.opts.sensor_id is None: self.opts.sensor_id = str(uuid4()) + logger.info("virtue_id: opts %r, env %r", + self.opts.virtue_id, os.environ.get("VIRTUE_ID", "env_unset")) if self.opts.virtue_id is None: if "VIRTUE_ID" in os.environ: self.opts.virtue_id = os.environ["VIRTUE_ID"]