Skip to content

Commit

Permalink
example_webapp: Describe values for "debug" param to WebApp.run().
Browse files Browse the repository at this point in the history
  • Loading branch information
pfalcon committed Feb 24, 2018
1 parent a13e511 commit 46f90d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion example_webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 46f90d6

Please sign in to comment.