Fix for sample in doc
`log_to_file()` expects a filename.
This commit is contained in:
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))
|
||||
|
||||
if __name__ == '__main__':
|
||||
mitogen.utils.log_to_file(main)
|
||||
mitogen.utils.log_to_file("mitogen.log")
|
||||
mitogen.utils.run_with_router(main)
|
||||
|
||||
Let's try running it:
|
||||
|
|
Loading…
Reference in New Issue