Andrew Rabert
1b603b5d7a
Release 2.5.0
2022-05-26 15:06:41 -04:00
Cedric Wille
b9debc05c4
Style as in-line code
2022-05-06 08:59:17 -04:00
Cedric Wille
b5bd2e1b8a
Elaborate on docs
2022-05-05 16:55:10 -04:00
Cedric Wille
07a2505ef1
Document default server header
2022-05-05 16:20:59 -04:00
Andrew Rabert
282f8258ca
Allow customization of the Server header
2022-04-12 11:05:34 -04:00
Andrew Rabert
32be20fb0e
Release 2.4.0
2022-03-16 10:41:24 -04:00
dave-shawley
11315f1653
Merge pull request #44 from nvllsvm/log_request
...
Add custom request logging
2022-03-16 08:39:33 -04:00
Andrew Rabert
0ff358a67e
Add reason to acccess log
2022-03-15 18:41:24 -04:00
Andrew Rabert
0c446ca73c
Add custom request logging
2022-03-01 13:25:42 -05:00
Andrew Rabert
a0ad9837b4
Release 2.3.0
2022-02-03 15:16:56 -05:00
Andrew Rabert
fc9a998ec8
Allow overriding sentry_sdk.init kwargs
2022-02-02 17:20:49 -05:00
Andrew Rabert
cda3e18ac9
Check availability with sys.modules
2022-02-02 17:05:17 -05:00
Andrew Rabert
b9e2c3a7c5
Add optional sentry integration
2022-02-02 11:28:34 -05:00
Andrew Rabert
62dd020d42
Release 2.2.0
2020-09-28 09:27:29 -04:00
Gavin M. Roy
9fdb071247
Merge pull request #42 from nvllsvm/xheaders
...
Default xheaders to true
2020-09-22 10:04:36 -04:00
Dave Shawley
886b559e4f
2.1.2: Fixes for python 3.9.
2020-09-15 09:21:54 -04:00
Andrew Rabert
7c5f9ca0dd
Default xheaders to true
2020-08-31 13:38:59 -04:00
Dave Shawley
5c103cde0e
Deprecation notice for sprockets.http.run.
...
sprockets.http.run will only accept sprockets.app.Application instances
in the near future. I'm doing this so that we can clean up the runner
code significantly as we move to using `async` and `await` instead of
futures.
2020-07-18 16:31:32 -04:00
Dave Shawley
9430941e4a
Use asyncio.all_tasks if it exists.
...
Python 3.9 removed ``asyncio.Task.all_tasks`` so I switched to using
``asyncio.all_tasks`` instead. The ``all_tasks`` function was added
in 3.7 and ``Task.all_tasks`` was deprecated then.
2020-07-18 08:50:20 -04:00
Dave Shawley
46d0326954
2.1.1: Fix testing with on stop methods.
2020-02-19 10:14:08 -05:00
Dave Shawley
e81c4cefb4
Use loop-specific create_task in Application.stop.
...
Calling asyncio.create_task() requires a running event loop which we
cannot guarantee. The event loop is not running when stop is called in
the testing.SprocketsHttpTestCase.
2020-02-19 06:37:58 -05:00
Dave Shawley
fd67c42a6a
Release 2.1.0
2019-10-09 11:05:19 -04:00
Dave Shawley
e6ef43c050
Deprecate calling run without a logging config.
2019-09-03 07:29:20 -04:00
Dave Shawley
cd478d0a3d
Add sprockets.http.testing
2019-09-02 08:09:34 -04:00
Dave Shawley
7991f99807
Make shutdown timings configurable.
2019-09-02 08:01:09 -04:00
Gavin M. Roy
33e4ceb704
Change pinning of Tornado to include Tornado 6
2019-03-05 14:17:31 -05:00
Andrew Rabert
d2c0d4a43d
Release version 2.0.0
2018-11-27 17:33:28 -05:00
Andrew Rabert
a981861bf1
Use python 3 super
2018-11-26 19:24:30 -05:00
Andrew Rabert
11bc7079c0
Remove explicit object inheritance
2018-11-26 19:03:37 -05:00
Andrew Rabert
234fb6d479
Support only tornado>=5.0
...
- Drop support for all versions of tornado prior to 5.0. This negates
the need for version-aware conditionals that previous existed.
- Update tox to test Tornado 5.0 and the unpinned latest version.
2018-11-26 19:03:37 -05:00
Andrew Rabert
74aaf7bf01
Add support for Tornado >= 5
2018-11-26 19:03:21 -05:00
Dave Shawley
3321987dfc
Runner: remove logging from signal handler.
...
It turns out that logging.Logger SHOULD NOT be used in signal handlers.
We are running into this elsewhere in the system so that is absolutely
no reason to risk it here.
ref: https://docs.python.org/3/library/logging.html#thread-safety
2018-03-15 07:34:09 -04:00
Gavin M. Roy
1868d40e63
Bump the version, license year
2018-01-29 11:27:56 -05:00
Dave Shawley
473f2f2de0
Install flake8 for development.
2018-01-29 07:18:58 -05:00
Dave Shawley
fb909088d9
Enable reuse_port option to HTTPServer.bind.
...
This makes solutions that restart the process (e.g., envconsul) work
properly. Without port reuse, you will get a very unpleasant "port
already in use" when the service restarts.
This requires Tornado >= 4.4
2018-01-28 14:32:41 -05:00
Brian Korty
a3e7836acd
Metadata bumps for 1.4.2.
2018-01-25 09:36:49 -05:00
Brian Korty
4109dd3885
Support max_body_size and max_buffer_size.
...
Allow max_body_size and max_buffer_size settings to be passed into the
underlying Tornado HTTPServer to override the default settings.
2018-01-24 20:07:12 -05:00
Dave Shawley
e7106c6c71
Metadata bumps for 1.4.1.
2018-01-03 13:44:32 -05:00
Dave Shawley
677e0ba6c0
Metadata bumps for 1.4.0
2016-11-03 07:53:04 -04:00
Dave Shawley
53f30b9476
Update user-land docs.
2016-11-03 07:52:53 -04:00
Dave Shawley
d7370ab5e6
Rename CallbackManager.run to start.
...
It was too easy to confuse this with Runner.run
2016-11-03 07:43:23 -04:00
Dave Shawley
531b796559
Add sprockets.http.app module.
...
This module separates out the application state management from the
mechanics of running the application. The former is destined for a
sub-class of tornado.web.Application (as app.Application) and the
latter remains in sprockets.http.runner.
2016-11-01 22:01:27 -04:00
Gavin M. Roy
22a33b13ae
Include correlation-id in the structured log data when logging.
2016-09-20 16:44:45 -04:00
Gavin M. Roy
a2c31f31eb
Include environment and service in the structured log data
2016-09-19 10:02:46 -04:00
Gavin M. Roy
957ce4c4a5
Update for structured syslog output when non-debug
2016-09-16 15:45:23 -04:00
Gavin M. Roy
f1b9cdc195
Change non-debug logging to be structured for rsyslog parsing from docker
2016-09-16 15:22:31 -04:00
Gavin M. Roy
bb4c7e20a5
Import logging.config
2016-08-29 16:15:56 -04:00
Gavin M. Roy
03b3f9d0d5
Remove the hook on startup and sprockets.logging
2016-08-29 16:12:51 -04:00
Gavin M. Roy
ae85b3bc89
Ready 1.3.0
2016-08-29 15:10:14 -04:00
Gavin M. Roy
a056a05d78
Update the logging to remove JSON logging
2016-08-29 15:07:01 -04:00