Skip to content

Commit

Permalink
close benoitc#306 .
Browse files Browse the repository at this point in the history
We badly called this function `start_server` when it should have been
`when_ready` .
  • Loading branch information
benoitc committed Feb 29, 2012
1 parent 4a0ba5c commit ce90734
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/example_config.py
Expand Up @@ -198,5 +198,5 @@ def pre_fork(server, worker):
def pre_exec(server):
server.log.info("Forked child, re-executing.")



def when_ready(server):
server.log.info("Server is ready. Spwawning workers")
4 changes: 2 additions & 2 deletions gunicorn/config.py
Expand Up @@ -858,9 +858,9 @@ class WhenReady(Setting):
section = "Server Hooks"
validator = validate_callable(1)
type = "callable"
def start_server(server):
def when_ready(server):
pass
default = staticmethod(start_server)
default = staticmethod(when_ready)
desc = """\
Called just after the server is started.
Expand Down

0 comments on commit ce90734

Please sign in to comment.