adding account number for better logging, since the endpoint is not available in Lemur DB

This commit is contained in:
Hossein Shafagh 2019-08-21 09:54:18 -07:00
parent 9b04d901c4
commit db91e48395
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,8 @@ def sync_endpoints(source):
)
)
metrics.send("endpoint.certificate.not.found",
"counter", 1, metric_tags={"cert": certificate_name, "endpoint": endpoint["name"]})
"counter", 1,
metric_tags={"cert": certificate_name, "endpoint": endpoint["name"], "acct": s.get_option("accountNumber", source.options)})
continue
policy = endpoint.pop("policy")