From 1fd3eec694e68c80f973e51db924211f0a92a200 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky <pfalcon@users.sourceforge.net> Date: Sat, 24 Feb 2018 22:30:02 +0200 Subject: [PATCH] example_webapp: Describe vales for "debug" param to WebApp.run(). --- example_webapp.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/example_webapp.py b/example_webapp.py index 4412e9a..251ad04 100644 --- a/example_webapp.py +++ b/example_webapp.py @@ -45,4 +45,9 @@ def hello(req, resp): #logging.basicConfig(level=logging.DEBUG) app = picoweb.WebApp(__name__, ROUTES) -app.run(debug=True) +# debug values: +# -1 disable all logging +# 0 (False) normal logging: requests and errors +# 1 (True) debug logging +# 2 extra debug logging +app.run(debug=1)