Fix for sample in doc

`log_to_file()` expects a filename.
This commit is contained in:
Stefane Fermigier 2019-07-31 10:42:18 +02:00 committed by David Wilson
parent 9bb3dac450
commit aa15975ad4
1 changed files with 1 additions and 1 deletions

View File

@ -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: