Skip to content

Commit

Permalink
Added log message to wrapper about VIRTUE_ID source.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Leinhos committed Mar 4, 2019
1 parent c1e75d1 commit 35b35ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sensors/wrapper/sensor_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 35b35ac

Please sign in to comment.