Randall Leeds
d4e1abd84b
Merge pull request #1220 from benoitc/fix/host-restart-uds
...
Fix/host restart uds
2016-03-13 16:28:52 -07:00
Randall Leeds
452cd550d2
add tests for arbiter unix socket locking
2016-03-13 15:56:22 -07:00
bloodearnest
34b595e817
Always use the the user configured logger class.
...
Previously, configuring statsd_host would override the configured class
2016-02-19 13:09:58 +00:00
Benoit Chesneau
3fdc113d81
fix gaiohttp test
...
fix #1164
2015-12-28 20:22:03 +01:00
benoitc
09e0d4c7fc
encode fix test
2015-11-25 14:11:54 +01:00
y.umezaki
7dd8a53c8c
Add accesslog params
...
Fix KeyError
Update access logger tests
Update settings.rst docs
2015-10-22 02:28:35 +09:00
Jochen Wersdörfer
338721ac56
encode http headers as latin1 RFC 2616
2015-08-29 11:16:58 +02:00
Slava Shklyaev
0d86a9094d
Improve markup of settings.rst
2015-07-15 04:10:15 +03:00
Randall Leeds
ec84c80c75
On pypy3 IOError is not OSError
2015-07-13 14:32:01 -07:00
Berker Peksag
ec3664dd30
Merge pull request #1068 from slava-sh/836-add-config-type-prefix
...
Prefix config file with its type
Fixes #836
2015-07-09 10:59:29 +03:00
Berker Peksag
da37bcfebe
Adda test case for #1069 .
2015-07-08 12:16:09 +03:00
Slava Shklyaev
531133615e
Prefix config file with its type
2015-07-08 09:21:32 +03:00
Berker Peksag
31ea81f19b
Rename statsd test file to test_statsd.py.
2015-07-03 07:51:04 +03:00
Berker Peksag
9475e2625e
Rename test files.
2015-07-03 07:46:22 +03:00
Berker Peksag
295ca8ccaf
Use six.StringIO in test_statsd.py.
2015-07-03 07:43:44 +03:00
Berker Peksag
7fff5afa39
Minor cosmetic fixes.
2015-07-03 07:43:22 +03:00
Berker Peksag
436c9872a2
Use a pytest fixture in test_default_config_file.
2015-07-03 07:42:56 +03:00
Berker Peksag
a0f05555aa
Silence a py.test warning.
2015-07-03 07:41:53 +03:00
Berker Peksag
2af9468940
Parametrize valid request tests.
2015-07-03 07:41:24 +03:00
Berker Peksag
882e00f6b5
Use types.SimpleNamespace where appropriate.
2015-07-03 07:40:32 +03:00
Berker Peksag
337900037f
Convert tests to use py.test assertions.
...
Closes #950
2015-07-03 07:38:36 +03:00
Berker Peksag
945d2ecfc3
Parametrize invalid request tests.
2015-05-09 21:49:10 +03:00
Randall Leeds
72c8be56fc
Add test for #1023
2015-05-09 20:46:31 +03:00
Thomas Orozco
410bcfa6e1
Fix statsd logging to work on Python 3
...
Bytes must be passed to socket.send.
Update tests to ensure an actual socket is used, so that errors like
this can be caught in unit tests in the future.
2015-04-30 14:07:03 +02:00
Berker Peksag
7ce90373a8
Remove unused imports.
2014-12-01 07:00:02 +02:00
Berker Peksag
4713ef7f37
Pass a 'sent' parameter to Mock().
2014-11-24 23:07:46 +02:00
Sungho Ryu
53a4ea556f
Added missing import for platform in tests/support.py for os x.
2014-11-24 14:58:31 +01:00
Berker Peksag
bf3ef8f389
Add selectors module to gunicorn codebase.
...
Closes #886 .
2014-10-16 15:44:10 +03:00
Benoit Chesneau
27c75d5d75
Merge pull request #887 from jssjr/jssjr/statsd-prefix
...
Allow for statsd metrics to be prefixed
2014-10-03 08:57:53 +02:00
Collin Anderson
f2ba62bc10
six 1.8.0 and gunicorn._compat
...
closes #904 and #905
2014-10-02 17:00:03 -04:00
Scott Sanders
c9c543dc82
Update tests to demonstrate trailing . handling
2014-09-16 08:34:38 -04:00
Scott Sanders
88bc188407
Add tests for statsd prefix
2014-09-12 14:58:03 -04:00
Collin Anderson
03fbe9429d
clean whitespace
2014-09-10 09:52:12 -04:00
benoitc
f80ddf368c
fix tests
2014-08-16 12:26:04 +02:00
Randall Leeds
42ff88bbbd
Merge pull request #838 from mgood/statsd-timing
...
Send statsd timing metrics in milliseconds
2014-08-05 00:26:40 -07:00
Matt Good
59bf9b5867
Fix statsd test for millisecond times
2014-08-03 14:39:34 -07:00
Alexis Le-Quoc
bc2e132bce
Rework logging to allow for empty log message while pushing metrics
2014-08-03 17:15:13 -04:00
Andrew Svetlov
2b2725dddb
Support UNIX sockets in gaiohttp worker
2014-07-23 07:33:18 +03:00
Benoit Chesneau
ceda9c597c
Merge pull request #748 from alq666/statsd-logger
...
gunicorn instrumentation via statsD and a new logger class
2014-06-28 16:45:54 +02:00
Thomas Grainger
2bde8eb103
Support loading config from module
2014-06-20 09:20:37 +01:00
Alexis Le-Quoc
05051aa8b2
Simpler statsd integration
...
No need to specify a logger class.
--statsd-to is enough to trigger the Statsd logger automatically
2014-06-18 21:33:04 -04:00
Alexis Le-Quoc
c3421a833d
Merge branch 'master' of https://github.com/benoitc/gunicorn into statsd-logger
2014-06-18 11:23:36 -04:00
Andrew Svetlov
e9518383da
Fix gaiohttp tests for Python 2.5
2014-06-09 19:31:52 +03:00
Andrew Svetlov
e1d97f1bea
Add tests for gaiohttp worker
2014-06-09 18:36:46 +03:00
Alexis Le-Quoc
3c3c52fb6a
Fix failing test and reorder logging to always log
2014-05-31 13:14:05 -04:00
Alexis Le-Quoc
89a3c96700
Incorporate feedback from PR
...
Use extra keyword in logger, more pythonic
capture response code as a rate metric
2014-05-31 00:10:51 -04:00
Berker Peksag
829e8d32d4
Remove __future__.with_statement imports.
...
Gunicorn requires Python 2.6 or newer now:
http://docs.gunicorn.org/en/latest/install.html#requirements
2014-05-15 00:34:02 +03:00
Nick Pillitteri
9c1b46f998
Move setting of environmental variables before preload_app start.
...
Move setting of env vars from Arbiter.start to Arbiter.setup so that they are available during application start up when 'preload_app' is used.
Closes #735
2014-05-13 15:46:06 -04:00
Stephen Holsapple
c353828351
Define Ciphers config conditionally
...
We only expose the `Ciphers` config parameter in versions of Python that
support it (i.e., >= Python 2.7).
2014-04-22 12:21:01 -07:00
W. Trevor King
2277901a72
Deprecate the --debug setting
...
"Limits the number of worker processes to 1" hasn't been true since
06a4dc6 (fix one error in gunicorn_paster, global conf was ignored,
2010-06-22), although it was true when the line was added in 3c7d532
(Large refactor of the documentation and website, 2010-05-22).
"changes some error handling that's sent to clients" hasn't been true
since feb86d3 (don't display the traceback in the HTTP response,
2013-09-27).
The only remaining actions that --debug had were disabling --preload
and hiding debug-level config logging. The former seems useless (just
disable --preload directly) and the latter at doesn't seem useful
enough for a new setting (just turn down --log-level). With this
commit, --preload always works and you always get debug-level config
logging.
I left a stub Debug entry in gunicorn.config, which we can leave in
place while folks convert any gunicorn scripts and configurations to
drop --debug. When the time comes, we can just remove that entry. I
also the boolean-config tests to use --preload, since that will still
be around after we remove the dummy Debug entry.
Fixes #700 .
2014-02-13 12:40:41 -08:00