Commit graph

87 commits

Author SHA1 Message Date
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
dave-shawley
cc2c8b9f62 Merge pull request #16 from sprockets/no-json-logging
Update the logging to remove JSON logging
2016-08-29 19:23:19 -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
Gavin M. Roy
3c620aa7dc Merge pull request #15 from dave-shawley/add-run-command
Add run command
2016-08-04 19:41:04 -04:00
Dave Shawley
140da0e79e - Fix sprockets namespace packaging. 2016-07-31 21:15:28 -04:00
Dave Shawley
160a3c70dd Appease flake8. 2016-06-13 23:23:46 -04:00
Dave Shawley
acc29c1428 Documentation clean up. 2016-06-13 23:23:35 -04:00
Dave Shawley
2f263b0997 Add `httprun` distutils command. 2016-06-13 23:23:17 -04:00
Dave Shawley
39cd6fdd5c setup.cfg: Add HTML coverage report. 2016-06-13 14:17:46 -04:00
dave-shawley
c3a63c5b94 Merge pull request #14 from sprockets/async-shutdown
Add async shutdown support and on_start callbacks
2016-03-11 10:57:51 -05:00
Gavin M. Roy
20d0a0ed43 Update documentation 2016-03-11 10:29:14 -05:00
Gavin M. Roy
d17c668f83 Add async shutdown support an on_start callbacks 2016-03-10 17:10:31 -05:00
Kelly Mathews
de4c434d38 Merge pull request #13 from sprockets/bump-version
bump version 1.1.1 --> 1.1.2
2016-02-23 13:53:38 -05:00
Kelly O'Brien
19951ec297 bump version 1.1.1 --> 1.1.2 2016-02-23 13:49:59 -05:00
dave-shawley
dd393f8c16 Merge pull request #12 from sprockets/set-xheaders
Allow xheaders to be passed in the settings
2016-02-23 13:46:11 -05:00
Kelly O'Brien
ddafcc240b document headers feature 2016-02-23 13:33:55 -05:00
Kelly O'Brien
0f819f2313 Allow xheaders to be passed in the settings
This will tell Tornado to use headers like X-Real-IP to get the user’s IP address instead of attributing all traffic to the lbl’s IP address.
2016-02-23 11:39:52 -05:00
Gavin M. Roy
46e3e16abb Merge pull request #11 from sprockets/fix-multiproc
Delay grabbing the IOLoop until after fork.
2016-02-15 13:03:42 -05:00
Dave Shawley
f3bfb0bd28 Delay grabbing the IOLoop until after fork. 2016-02-15 13:01:16 -05:00
dave-shawley
a1cff79e94 Merge pull request #10 from sprockets/release-1-1-0
Release 1 1 0
2016-02-11 14:51:05 -05:00
Dave Shawley
64e7261543 docs/history: Fix broken link. 2016-02-11 14:46:04 -05:00
Dave Shawley
4278f513bb Release 1.1.0 2016-02-11 14:45:09 -05:00
Gavin M. Roy
40915915db Merge pull request #9 from sprockets/add-before-run
Add before_run callbacks
2016-02-03 20:19:15 -05:00
Dave Shawley
53b09b2e32 tests: Add comprehensive tests for Runner class. 2016-01-28 07:53:01 -05:00
Dave Shawley
03e85b440c Call sys.exit() when a before_run callback raises an exception. 2016-01-28 07:53:01 -05:00
Dave Shawley
e906e6f33e tests: Add callback exception testing. 2016-01-28 07:08:50 -05:00
Dave Shawley
5ba9e5fc59 tests: Refactor callback testing to consolidate code. 2016-01-28 07:02:06 -05:00
Dave Shawley
cf3d008fcf LICENSE: Bump for 2016. 2016-01-27 18:27:54 -05:00
Dave Shawley
7c55f1c93e Add codecov support. 2016-01-27 18:26:44 -05:00
Dave Shawley
a1ba8874f6 Add support for `before_run` callbacks. 2016-01-27 18:24:02 -05:00
Dave Shawley
d8253fcef2 tests: Add tests for the shutdown callback. 2016-01-27 16:02:45 -05:00
Brian Korty
3baae5d1b3 Merge pull request #8 from sprockets/make-logging-configurable
Make logging configurable
2015-12-14 09:44:19 -05:00
Dave Shawley
92ca0bf70e Add log_config parameter to sprockets.http.run. 2015-12-10 10:48:25 -05:00
Dave Shawley
2d043ff752 Move _get_logging_config into sprockets.http. 2015-12-10 10:44:52 -05:00
Dave Shawley
557989399c Move logging.config.dictConfig into http.run. 2015-12-10 10:41:59 -05:00
Dave Shawley
2861d8ef93 Add tests for sprockets.http.run. 2015-12-10 10:22:10 -05:00
Dave Shawley
14285a7178 tox.ini: Fix broken requirements for py27. 2015-12-10 09:54:43 -05:00
Dave Shawley
a742456a7d docs/history: Add missing link. 2015-11-20 15:06:54 -05:00
dave-shawley
c442fab01d Merge pull request #7 from sprockets/content-type-mixin-detect
Content type mixin detect
2015-11-20 14:29:22 -05:00
Gavin M. Roy
72b2bfd67c Update the README as well 2015-11-20 14:18:27 -05:00
Gavin M. Roy
f028723e45 Use mediatype.ContentMixin if its also extended 2015-11-20 14:14:39 -05:00
Brian Korty
2fdc020dab Merge pull request #6 from sprockets/add-error-mixin-tooooooo
Add Error Reporting Mix-ins
2015-11-20 08:58:20 -05:00
Dave Shawley
12d2855bd7 Bumps for 1.0.0. 2015-11-20 08:26:27 -05:00