master: set Router.profiling if MITOGEN_PROFILING variable present.

pull/564/head
David Wilson 5 years ago
parent 568044438d
commit cafdfdb8e2

@ -998,7 +998,7 @@ class Router(mitogen.parent.Router):
#: of any :class:`Broker`, e.g. via::
#:
#: mitogen.master.Router.profiling = True
profiling = False
profiling = os.environ.get('MITOGEN_PROFILING') is not None
def __init__(self, broker=None, max_message_size=None):
if broker is None:

Loading…
Cancel
Save