Skip to content

Commit

Permalink
Merge pull request #9 from perone/master
Browse files Browse the repository at this point in the history
Fixing a issue when the gevent worker is using an inexistent log.
  • Loading branch information
benoitc committed May 20, 2012
2 parents 6a54ead + dfdb4f2 commit 78002af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pistil/tcp/gevent_worker.py
Expand Up @@ -7,7 +7,8 @@

import os
import sys

import logging
log = logging.getLogger(__name__)

try:
import gevent
Expand Down Expand Up @@ -58,7 +59,7 @@ def run(self):
while self.alive:
self.notify()
if self.ppid != os.getppid():
self.log.info("Parent changed, shutting down: %s", self)
log.info("Parent changed, shutting down: %s", self)
break

gevent.sleep(1.0)
Expand Down

0 comments on commit 78002af

Please sign in to comment.