Fix for sample in doc

`log_to_file()` expects a filename.
pull/612/head
Stefane Fermigier 5 years ago committed by David Wilson
parent 9bb3dac450
commit aa15975ad4

@ -265,7 +265,7 @@ We must therefore continue by writing our code as a script::
print(local.call(my_first_function)) print(local.call(my_first_function))
if __name__ == '__main__': if __name__ == '__main__':
mitogen.utils.log_to_file(main) mitogen.utils.log_to_file("mitogen.log")
mitogen.utils.run_with_router(main) mitogen.utils.run_with_router(main)
Let's try running it: Let's try running it:

Loading…
Cancel
Save