Change `_Cache` reuse emit to `.runtime()`
parent
72df312e71
commit
83d69fe395
|
@ -271,8 +271,11 @@ async def maybe_open_context(
|
|||
yield False, yielded
|
||||
|
||||
else:
|
||||
log.info(f'Reusing _Cached resource for {ctx_key}')
|
||||
_Cache.users += 1
|
||||
log.runtime(
|
||||
f'Reusing resource for `_Cache` user {_Cache.users}\n\n'
|
||||
f'{ctx_key!r} -> {yielded!r}\n'
|
||||
)
|
||||
lock.release()
|
||||
yield True, yielded
|
||||
|
||||
|
|
Loading…
Reference in New Issue