Commit 7698f86a authored by David Wilson's avatar David Wilson

Whups, don't always enable profiling in mitogen.main()

parent 52d980ad
...@@ -110,8 +110,9 @@ def main(log_level='INFO', profiling=False): ...@@ -110,8 +110,9 @@ def main(log_level='INFO', profiling=False):
return func return func
import mitogen.parent import mitogen.parent
import mitogen.utils import mitogen.utils
mitogen.core.enable_profiling() if profiling:
mitogen.master.Router.profiling = profiling mitogen.core.enable_profiling()
mitogen.master.Router.profiling = profiling
utils.log_to_file(level=log_level) utils.log_to_file(level=log_level)
return mitogen.core._profile_hook( return mitogen.core._profile_hook(
'main', 'main',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment