-
Notifications
You must be signed in to change notification settings - Fork 877
upgraded gunicorn, removed deprecated flag, and added timezone to logging #519
Conversation
@@ -23,7 +23,7 @@ | |||
app.debug = True | |||
app.run(host=host, port=port) | |||
# Or you can run: | |||
# gunicorn --access-logfile - --log-level debug --debug -b 0.0.0.0:5000 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove the --debug switch? (here and elsewhere)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Tue, Aug 12, 2014 at 09:27:49AM -0700, Olivier Gambier wrote:
@@ -23,7 +23,7 @@
app.debug = True
app.run(host=host, port=port)
# Or you can run:
gunicorn --access-logfile - --log-level debug --debug -b 0.0.0.0:5000 \
Why remove the --debug switch?
Because it's useless ;) [1,2].
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing useless stuff indeed seems like an acceptable reason (note that in v18, --debug or its absence had strange side-effects on logging IIRC) - but since we are moving up, I'm happy :-)
@silarsis can you squash the two commits? (makes for a cleaner commit history) |
On Tue, Aug 12, 2014 at 12:18:06PM -0700, Olivier Gambier wrote:
I'd still want:
|
On Tue, Aug 12, 2014 at 12:25:07PM -0700, W. Trevor King wrote:
A link to http://docs.gunicorn.org/en/19.0/news.html#core in the |
The second commit only exists because the first failed due to >50 char commit message - the update to -w and --max-requests just make the docco match the actual use a bit more closely (and sorry about the whitespace, I'll have words with my editor). I can fix all the above, but newbie question - do I submit this as a new PR with a single commit, or can I cleanly adjust what's been pushed to be a single commit (and if so, how)? Thanks :) |
On Tue, Aug 12, 2014 at 12:31:46PM -0700, Kevin Littlejohn wrote:
Sounds good to me. Just say that in your commit message so folks
When there's already more than one commit, I usually do something $ git rebase -i origin/master and convert all the commits but the first from ‘pick’ to ‘squash’. If you have just made one commit and realize you goofed, you can: $ git commit --amend … to adjust the most recent commit. Once you've fixed your local $ git push -f silarsis master assuming ‘silarsis’ is the name for your public GitHub repository. |
Ok, believe that's done now - let me know if there's any other alterations needed. |
On Tue, Aug 12, 2014 at 12:36:43PM -0700, W. Trevor King wrote:
It looks like this went well :). bbca252 still has some issues,
|
On Tue, Aug 12, 2014 at 01:12:37PM -0700, Kevin Littlejohn wrote:
Ah, I see you made some of those changes in 498491e ;). |
* gunicorn added timezone logs in v19.0 [1] * Altered docker-registry logging to include timezone * Altered documentation to more closely reflect implementation (-w and --max-requests flags as per use in run.py) * Removed --debug flag, deprecated in v19.0 [1] * Removed unecessary documentation from wsgi.py (we already suggest how to run Gunicorn in the README) * Mention GUNICORN_OPTS in run.py's docstring, which should have happened in 2008330 (docker_registry.run: Restore GUNICORN_OPTS functionality, 2014-07-18). [1]: http://docs.gunicorn.org/en/19.0/news.html#core
I actually set the workers to 10 based on observation of running 0.7.3 out of the box - but it appears that's been changed between 0.7.3 and now, so my bad :) I've adjusted in my commit. |
On Tue, Aug 12, 2014 at 01:39:00PM -0700, Kevin Littlejohn wrote:
Indeed, there seems to be some churn here. The current code base has
I'd stick with 4. |
On Tue, Aug 12, 2014 at 01:54:35PM -0700, W. Trevor King wrote:
This dates back to the initial Upstart script in 50017d4 (Upstart |
Ok, f0703e6 looks good to me :). |
I think that's fine. LGTM. |
Thanks a lot. Merged - will do for 0.9. Guys, keep up the excellent work! |
upgraded gunicorn, removed deprecated flag, and added timezone to logging
Upgrade of gunicorn brings it to a version that includes timezone in access log. As far as I can tell it's working - there appear to be two bugs in running the nose tests that also exist in 0.7.3, unless I'm running it wrong.