]>
git.ipfire.org Git - thirdparty/tornado.git/log
Ben Darnell [Sun, 16 Sep 2012 23:58:48 +0000 (16:58 -0700)]
Split IOStream into BaseIOStream and IOStream.
IOStream the socket-specific code; BaseIOStream will be the basis
for non-socket-based streams (i.e. pipes)
Ben Darnell [Sun, 16 Sep 2012 21:02:49 +0000 (14:02 -0700)]
Remove tornado.database, which is now distributed separately.
Ben Darnell [Sun, 16 Sep 2012 20:01:16 +0000 (13:01 -0700)]
Mention HTTPError explicitly in the write_error docs.
Closes #594.
Ben Darnell [Mon, 10 Sep 2012 16:53:08 +0000 (09:53 -0700)]
Replace get_unused_port with bind_unused_port, which binds to port 0
to allow the OS to select a port for us.
Closes #590.
Ben Darnell [Mon, 10 Sep 2012 04:34:58 +0000 (21:34 -0700)]
Run more of web_test in wsgi_test. Fix a bug with 304 in wsgi.
Ben Darnell [Mon, 10 Sep 2012 04:04:58 +0000 (21:04 -0700)]
Keep empty arguments in WSGI mode too.
Add another test and release notes.
Ben Darnell [Mon, 10 Sep 2012 03:52:13 +0000 (20:52 -0700)]
Merge commit '
ebf17aa '
Closes #585.
Ben Darnell [Mon, 10 Sep 2012 01:55:47 +0000 (18:55 -0700)]
Add additional command-line arguments to tornado.testing.main
Ben Darnell [Mon, 10 Sep 2012 01:43:52 +0000 (18:43 -0700)]
Document the logging changes
Ben Darnell [Sun, 9 Sep 2012 22:45:53 +0000 (15:45 -0700)]
Introduce ExpectLog as a finer-grained alternative to LogTrapTestCase,
and use it throughout the test suite.
Ben Darnell [Sun, 9 Sep 2012 22:43:24 +0000 (15:43 -0700)]
Errors while rendering templates no longer log the generated code.
Now that stack traces have source line info, the full code is hopefully
unnecessary (and if it is needed, this isn't the best way to get it).
Syntax errors in the generated code will still dump the whole thing
to the log.
Ben Darnell [Sun, 9 Sep 2012 20:23:49 +0000 (13:23 -0700)]
Suppress tornado.access logs in tests, and remove LogTrapTestCase
from tests that no longer produce any logs.
Ben Darnell [Sun, 9 Sep 2012 20:23:32 +0000 (13:23 -0700)]
autoreload also needs to guarantee that logging is configured.
Ben Darnell [Sun, 9 Sep 2012 04:35:51 +0000 (21:35 -0700)]
Move LogFormatter from options.py to log.py
Ben Darnell [Sun, 9 Sep 2012 04:06:46 +0000 (21:06 -0700)]
Compensate for move to non-root loggers by calling basicConfig in IOLoop.start.
The root logging methods call basicConfig automatically, but non-root loggers
do not.
Ben Darnell [Sun, 9 Sep 2012 03:51:31 +0000 (20:51 -0700)]
Switch from root logger to separate loggers.
Rather than using one logger per module, use three semantically-defined
loggers: tornado.access, tornado.application, and tornado.general.
Ben Darnell [Sat, 8 Sep 2012 19:49:22 +0000 (12:49 -0700)]
Start new release notes
Ben Darnell [Thu, 6 Sep 2012 00:54:47 +0000 (17:54 -0700)]
Merge branch 'tornado3'
Ben Darnell [Thu, 6 Sep 2012 00:54:21 +0000 (17:54 -0700)]
Add unittest2 to other test configurations.
bdarnell [Wed, 5 Sep 2012 05:20:03 +0000 (22:20 -0700)]
Merge pull request #593 from phihag/correct-AI_ADDRCONFIG
Do not set AI_ADDRCONFIG in netutils.bind_sockets
Ben Darnell [Wed, 5 Sep 2012 04:50:58 +0000 (21:50 -0700)]
Post-release version bump
Philipp Hagemeister [Tue, 4 Sep 2012 15:04:47 +0000 (17:04 +0200)]
Add an example for flags
Philipp Hagemeister [Tue, 4 Sep 2012 10:34:00 +0000 (12:34 +0200)]
Do not set AI_ADDRCONFIG in netutil.bind_sockets
Philipp Hagemeister [Tue, 4 Sep 2012 10:33:38 +0000 (12:33 +0200)]
Add a flags= option to netutil.bind_sockets
Ben Darnell [Tue, 4 Sep 2012 05:09:29 +0000 (22:09 -0700)]
Final 2.4 release notes
Ben Darnell [Tue, 4 Sep 2012 05:07:23 +0000 (22:07 -0700)]
Set version number to 2.4
bdarnell [Sat, 1 Sep 2012 21:30:55 +0000 (14:30 -0700)]
Merge pull request #591 from taylorhughes/master
Change example to not include legit-random-looking cookie secrets
Taylor Hughes [Sat, 1 Sep 2012 06:47:11 +0000 (23:47 -0700)]
Make it obvious to anyone reading copy-pasted example code that the cookie secret is not suitable for production use.
Taylor Hughes [Sat, 1 Sep 2012 06:46:56 +0000 (23:46 -0700)]
Make it obvious to anyone reading copy-pasted example code that the cookie secret is not suitable for production use.
Ben Darnell [Thu, 30 Aug 2012 23:44:42 +0000 (19:44 -0400)]
Replace our hacky homegrown test skipping with unittest.skip.
Add a test runner that makes the output for skipped tests more informative.
Ben Darnell [Thu, 30 Aug 2012 21:43:54 +0000 (17:43 -0400)]
Start using new unittest features from py27/unittest2.
Tornado's test suite now requires unittest2 on py25 and py26.
tornado.testing will use unittest2 if available but does not require
it.
This means we can no longer run the test suite under app engine 2.5,
although it still works for app engine 2.7.
Ben Darnell [Thu, 30 Aug 2012 18:41:24 +0000 (14:41 -0400)]
Move maint/appengine to maint/test/appengine
Ben Darnell [Thu, 30 Aug 2012 17:42:54 +0000 (13:42 -0400)]
Twisted is dropping python 2.5 support in their upcoming 12.2.0 release.
Ben Darnell [Wed, 29 Aug 2012 17:33:00 +0000 (13:33 -0400)]
Autobahn websocket test has moved to a separate package.
Ben Darnell [Tue, 28 Aug 2012 19:24:55 +0000 (15:24 -0400)]
Fix tests on windows
Ben Darnell [Tue, 28 Aug 2012 17:43:13 +0000 (13:43 -0400)]
Add link to new settings docs in release notes
Ben Darnell [Mon, 27 Aug 2012 23:18:38 +0000 (19:18 -0400)]
Organize next-release notes.
Ben Darnell [Mon, 27 Aug 2012 22:56:34 +0000 (18:56 -0400)]
Document all available application settings.
Ben Darnell [Mon, 27 Aug 2012 21:49:20 +0000 (17:49 -0400)]
Fill in missing docs and other minor doc updates.
Ben Darnell [Mon, 27 Aug 2012 21:45:50 +0000 (17:45 -0400)]
Run twisted tests in a temporary directory so they don't leak temp files.
This mainly affected the unix socket tests.
Ben Darnell [Mon, 27 Aug 2012 21:33:01 +0000 (17:33 -0400)]
Autopep8 cleanups.
Ben Darnell [Mon, 27 Aug 2012 21:30:06 +0000 (17:30 -0400)]
Don't let autopep8 rewrite all the lines longer than 80 chars.
Ben Darnell [Mon, 27 Aug 2012 17:43:13 +0000 (10:43 -0700)]
Release note updates
Ben Darnell [Mon, 27 Aug 2012 01:03:12 +0000 (18:03 -0700)]
Fix template errors with empty blocks.
Emits a "pass" statement in every generated block whether it's empty or not;
I verified with the disassembler that the unnecessary pass statements
don't generate extra bytecodes.
Closes #546.
Ben Darnell [Mon, 27 Aug 2012 00:43:38 +0000 (17:43 -0700)]
Refactor template namespace from render_string to its own method.
This method may be overridden as an alternative to overriding render_string
and adding to kwargs, or may be used directly to render templates
without going through render_string (as when templates are constructed
directly; see https://github.com/facebook/tornado/issues/564)
Ben Darnell [Sun, 26 Aug 2012 23:45:35 +0000 (16:45 -0700)]
Make the openid claimed_id available in OpenIDMixin
This should be used as a persistent identifier for the user
since it is the only field guaranteed not to change.
Closes #568.
Ben Darnell [Sun, 26 Aug 2012 23:23:30 +0000 (16:23 -0700)]
Make authdemo's logout less confusing.
Closes #376.
Ben Darnell [Sat, 25 Aug 2012 03:26:46 +0000 (20:26 -0700)]
Release note updates
Ben Darnell [Mon, 20 Aug 2012 02:31:15 +0000 (19:31 -0700)]
Fix test for pre-2.7 assertions
Ben Darnell [Mon, 20 Aug 2012 02:20:58 +0000 (19:20 -0700)]
Merge remote-tracking branch 'evanj/master' into merge
Ben Darnell [Mon, 20 Aug 2012 02:02:56 +0000 (19:02 -0700)]
When closing an HTTPConnection, also clear a circular reference to self.
This reference could cause garbage collection of the connection object
to be delayed.
Closes #586.
Ben Darnell [Sun, 19 Aug 2012 19:16:15 +0000 (12:16 -0700)]
Allow calls to SSLIOStream.write while the connection is in progress.
Skip fast-path writes while connecting, and rework the interaction
between base class and subclass to avoid the possibility of doubly-wrapped
sockets.
Closes #587.
Ben Darnell [Sun, 19 Aug 2012 05:56:14 +0000 (22:56 -0700)]
Reorganize IOStream tests and run them in both regular and ssl mode.
In the process, discover a quirk of the server-side SSL handshake and
a possible bug with ssl in pypy.
Ben Darnell [Sun, 19 Aug 2012 02:39:57 +0000 (19:39 -0700)]
Add binary_form argument to get_ssl_certificate.
The default form contains only basic information; the binary form is more
complete.
Yusuf Simonson [Thu, 16 Aug 2012 00:54:56 +0000 (17:54 -0700)]
Do not remove empty GET/POST parameters
Ben Darnell [Wed, 15 Aug 2012 17:38:09 +0000 (10:38 -0700)]
Test cleanup.
Listen on 127.0.0.1 to avoid firewall warnings. Move to AsyncHTTPTestCase
to reduce boilerplate. Close a leaking file descriptor (ResourceWarnings
are still just printing out instead of making the tests fail)
Ben Darnell [Wed, 15 Aug 2012 17:22:12 +0000 (10:22 -0700)]
Merge remote-tracking branch 'bergundy/upstream'
Roey Berman [Wed, 15 Aug 2012 11:48:20 +0000 (14:48 +0300)]
added b() to string assertion in simple_httpclient_test:HTTP100ContinueTestCase (python3)
Roey Berman [Wed, 15 Aug 2012 11:36:51 +0000 (14:36 +0300)]
added b to stream write (for passing python3 tests
Roey Berman [Wed, 15 Aug 2012 11:15:31 +0000 (14:15 +0300)]
ignore 1xx headers prev commit was incomplete, fixed
Ben Darnell [Mon, 13 Aug 2012 17:06:48 +0000 (10:06 -0700)]
Blacklist a few more twisted tests that seem flaky
Ben Darnell [Mon, 13 Aug 2012 17:06:10 +0000 (10:06 -0700)]
Update docutils dependency version.
0.9 doesn't appear to be in pypi any more.
Ben Darnell [Sun, 12 Aug 2012 00:51:27 +0000 (17:51 -0700)]
Fix str/bytes problems in the auth module on python 3.
In some cases signatures were being computed on str(byte object),
which is incorrect. Enable python -bb flag to catch this class of
errors and fix up a few more instances.
Fixes #581.
Ben Darnell [Sat, 11 Aug 2012 19:42:49 +0000 (12:42 -0700)]
Remove httpclient max_simultaneous_connections argument.
This argument doesn't do anything in modern versions of libcurl,
and is confusingly similar to max_clients.
Ben Darnell [Sat, 11 Aug 2012 19:27:23 +0000 (12:27 -0700)]
Merge branch 'branch2.3'
Ben Darnell [Sat, 11 Aug 2012 19:14:09 +0000 (12:14 -0700)]
Update doc examples for xsrf_form_html.
{% module %} or {% raw %} must be used now due to auto-escaping.
Ben Darnell [Sat, 11 Aug 2012 19:09:57 +0000 (12:09 -0700)]
Latex output file must end in .tex
Ben Darnell [Sat, 11 Aug 2012 16:07:33 +0000 (09:07 -0700)]
Add latex_documents configuration so readthedocs can build pdfs of the docs.
Ben Darnell [Sat, 11 Aug 2012 19:09:57 +0000 (12:09 -0700)]
Latex output file must end in .tex
Ben Darnell [Sat, 11 Aug 2012 16:07:33 +0000 (09:07 -0700)]
Add latex_documents configuration so readthedocs can build pdfs of the docs.
Stiletto [Mon, 6 Aug 2012 15:43:27 +0000 (19:43 +0400)]
Fire shutdown event from main loop
Stiletto [Mon, 30 Jul 2012 20:25:04 +0000 (00:25 +0400)]
Fixed shutdown sequence in twisted reactor
Evan Jones [Thu, 2 Aug 2012 15:13:58 +0000 (11:13 -0400)]
simple_httpclient: Report errno and reason for connection errors.
Previously, this reported "Connection closed" for everything. This change
adds the exception info: HTTP 599: [Errno 61] Connection refused
Roey Berman [Tue, 31 Jul 2012 14:43:12 +0000 (17:43 +0300)]
simple_httpclient: ignore 1xx headers
bdarnell [Tue, 31 Jul 2012 11:17:47 +0000 (04:17 -0700)]
Merge pull request #573 from ewdurbin/master
Allow 'oob' as a callback_uri per OAuth spec section 2.1
Roey Berman [Mon, 30 Jul 2012 10:37:17 +0000 (13:37 +0300)]
iostream_test: moved the server.close() call from write the after write callback to just before the second read_until().
Ernest W. Durbin III [Mon, 30 Jul 2012 15:16:56 +0000 (11:16 -0400)]
more oob changes
bdarnell [Sun, 29 Jul 2012 15:45:20 +0000 (08:45 -0700)]
Merge pull request #569 from MartinMartimeo/patch-1
Adding super(...).__init__ in web.py
MartinMartimeo [Sat, 21 Jul 2012 19:55:38 +0000 (22:55 +0300)]
Omitting super(...).__init__() causes python, when RequestHandler is extended with multiple class inheritance, to not execute all __init__ methods of all super classes.
bdarnell [Sat, 14 Jul 2012 17:56:03 +0000 (10:56 -0700)]
Merge pull request #560 from ei-grad/master
[trivial] Output a peer name to log message on ssl errors
Roey Berman [Thu, 12 Jul 2012 16:57:38 +0000 (19:57 +0300)]
Fixed and added regression test for a bug that was introduced in 2.3
where the IOStream._close_callback would never be
called if there were pending reads.
(Cherry-picked from https://github.com/facebook/tornado/pull/561 with
amendments for compatibility with python 2.5-2.6 -bdarnell)
Closes #561.
Andrew Grigorev [Mon, 9 Jul 2012 11:17:07 +0000 (15:17 +0400)]
formatting
Andrew Grigorev [Mon, 9 Jul 2012 10:47:51 +0000 (14:47 +0400)]
output a peer name to log message on ssl errors
bdarnell [Wed, 4 Jul 2012 06:03:05 +0000 (23:03 -0700)]
Merge pull request #557 from raullenchai/master
Fix handling of a limited form of secure_cookie tampering
Ben Darnell [Wed, 4 Jul 2012 05:24:28 +0000 (22:24 -0700)]
Fix sphinx formatting of new docstring
bdarnell [Wed, 4 Jul 2012 05:19:51 +0000 (22:19 -0700)]
Merge pull request #556 from yoinc/master
Forward testing.main kwargs to unittest.main
Raullen [Tue, 3 Jul 2012 00:28:44 +0000 (17:28 -0700)]
return None when a secure-cookie is forged
Joey Liaw [Fri, 15 Jun 2012 01:27:40 +0000 (18:27 -0700)]
Forward testing.main kwargs to unittest.main
Ben Darnell [Fri, 29 Jun 2012 07:53:22 +0000 (00:53 -0700)]
Disallow multiple calls to add_handler for the same fd in IOLoop.
This was already true for epoll; this change adds a check for
kqueue and select implementations.
bdarnell [Fri, 29 Jun 2012 06:57:11 +0000 (23:57 -0700)]
Merge pull request #551 from minrk/reuseaddr
Don't set SO_REUSEADDR on Windows
bdarnell [Fri, 29 Jun 2012 06:54:04 +0000 (23:54 -0700)]
Merge pull request #547 from evanj/master
Detect SSL option errors at start up
bdarnell [Fri, 29 Jun 2012 06:53:22 +0000 (23:53 -0700)]
Merge pull request #552 from vigasin/master
Fix SSL error handling bug that could result in 100% cpu usage.
Possibly platform-specific; observed on windows.
Ben Darnell [Fri, 29 Jun 2012 06:50:23 +0000 (23:50 -0700)]
Use non-deprecated zope.interface methods in twisted bridge.
MinRK [Thu, 28 Jun 2012 18:29:05 +0000 (11:29 -0700)]
skip EXCLUSIVEADDRUSE on Windows
Ivan Vigasin [Thu, 28 Jun 2012 16:01:34 +0000 (20:01 +0400)]
Fix ssl socket error handling.
Evan Jones [Tue, 26 Jun 2012 16:17:13 +0000 (12:17 -0400)]
TCPServer: Do some validation of ssl_options
Previously, errors aren't detected until a client connects.
MinRK [Thu, 28 Jun 2012 04:08:12 +0000 (21:08 -0700)]
set SO_EXCLUSIVEADDRUSER on Windows instead of SO_REUSEADDR
closes #550
Ben Darnell [Wed, 27 Jun 2012 07:02:58 +0000 (00:02 -0700)]
Fix (and test and document) logging on py2 with non-ascii bytestrings.
The immediate motivation was an error in request logging when the
request contains non-ascii characters, but a more general fix is
desirable since there are probably more cases where we log utf8 byte
strings, and in general a logging system that blows up on data that
has a perfectly useful representation is not ideal.
Closes #544.
bdarnell [Wed, 27 Jun 2012 04:04:44 +0000 (21:04 -0700)]
Merge pull request #549 from polymorphm/bugfix_stack_context_wrap_kwargs
tornado.stack_context.wrap must not to restrict kwargs for function
Andrej A Antonov [Wed, 27 Jun 2012 01:18:54 +0000 (05:18 +0400)]
fixed the bug that tornado.stack_context.wrap restricts kwargs for function