From 0fc3da69e96f6f3ee392b1150494e337fca7934b Mon Sep 17 00:00:00 2001 From: Graham Dumpleton Date: Sat, 21 Jan 2017 14:16:00 +1100 Subject: =?UTF-8?q?Expose=20name=20attribute=20on=20the=20log=20object=20t?= =?UTF-8?q?o=20avoid=20code=20failing=20which=20doesn=E2=80=99t=20cope=20w?= =?UTF-8?q?ith=20fact=20that=20it=20doesn=E2=80=99t=20have=20to=20exist.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/environ.wsgi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/environ.wsgi b/tests/environ.wsgi index 5be59cb..c7b8dfd 100644 --- a/tests/environ.wsgi +++ b/tests/environ.wsgi @@ -37,6 +37,11 @@ def application(environ, start_response): print('CWD: %s' % os.getcwd(), file=output) print(file=output) + print('STDOUT:', sys.stdout.name, file=output) + print('STDERR:', sys.stderr.name, file=output) + print('ERRORS:', environ['wsgi.errors'].name, file=output) + print(file=output) + print('python.version: %r' % (sys.version,), file=output) print('python.prefix: %r' % (sys.prefix,), file=output) print('python.path: %r' % (sys.path,), file=output) -- cgit v1.2.1