From aa15975ad464ffcc4d4e2d267f6171b6c552e6ec Mon Sep 17 00:00:00 2001 From: Stefane Fermigier Date: Wed, 31 Jul 2019 10:42:18 +0200 Subject: [PATCH] Fix for sample in doc `log_to_file()` expects a filename. --- docs/getting_started.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting_started.rst b/docs/getting_started.rst index 945e243f..12056c55 100644 --- a/docs/getting_started.rst +++ b/docs/getting_started.rst @@ -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: