Add benchmarks for structured logging performance (#6266)

This commit is contained in:
Amber Brown 2019-12-03 20:21:25 +11:00 committed by GitHub
parent 72078e4be5
commit fdec84aa42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 294 additions and 0 deletions

View file

@ -256,6 +256,7 @@ class TerseJSONToTCPLogObserver(object):
# transport is the same, just trigger a resumeProducing.
if self._producer and r.transport is self._producer.transport:
self._producer.resumeProducing()
self._connection_waiter = None
return
# If the producer is still producing, stop it.