Fix "Starting metrics collection from sentinel context" errors (#9053)

This commit is contained in:
Erik Johnston 2021-01-08 14:33:53 +00:00 committed by GitHub
parent 12f79da587
commit a03d71dc9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 21 deletions

View file

@ -111,7 +111,8 @@ class Measure:
curr_context = current_context()
if not curr_context:
logger.warning(
"Starting metrics collection from sentinel context: metrics will be lost"
"Starting metrics collection %r from sentinel context: metrics will be lost",
name,
)
parent_context = None
else: