diff options
author | Graham Dumpleton <Graham.Dumpleton@gmail.com> | 2022-09-12 11:38:17 +1000 |
---|---|---|
committer | Graham Dumpleton <Graham.Dumpleton@gmail.com> | 2022-09-12 11:38:17 +1000 |
commit | 2e39954012cf721c753fb01cefffc60111590f28 (patch) | |
tree | 1ed8d6f7cdcd58f8cf3a7dbf340d7b5f265cfa43 | |
parent | 504b7865f2aa6ee5cc44f5701262ef8d31ff1e83 (diff) | |
parent | bc81e680e0ae2ca96afc198c24eb20bb39f82c2c (diff) | |
download | mod_wsgi-2e39954012cf721c753fb01cefffc60111590f28.tar.gz |
Merge branch 'master' into develop
-rw-r--r-- | docs/user-guides/debugging-techniques.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/user-guides/debugging-techniques.rst b/docs/user-guides/debugging-techniques.rst index 0baf52c..3ec80fe 100644 --- a/docs/user-guides/debugging-techniques.rst +++ b/docs/user-guides/debugging-techniques.rst @@ -76,13 +76,13 @@ below:: status = '200 OK' output = b'Hello World!' - print("application debug #1", file=environ['wsgi.errors'])) + print("application debug #1", file=environ['wsgi.errors']) response_headers = [('Content-type', 'text/plain'), ('Content-Length', str(len(output)))] start_response(status, response_headers) - print("application debug #2", file=environ['wsgi.errors'])) + print("application debug #2", file=environ['wsgi.errors']) return [output] @@ -95,7 +95,7 @@ below:: Alternatively, always use `print` as a statement rather than a function:: - print >> environ['wsgi.errors']), "application debug #N" + print >> environ['wsgi.errors'], "application debug #N" If 'wsgi.errors' is not available to the code which needs to output log messages, then it should explicitly direct output from 'print' |