Skip to content

Commit 78002af

Browse files
committed
Merge pull request #9 from perone/master
Fixing a issue when the gevent worker is using an inexistent log.
2 parents 6a54ead + dfdb4f2 commit 78002af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pistil/tcp/gevent_worker.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
import os
99
import sys
10-
10+
import logging
11+
log = logging.getLogger(__name__)
1112

1213
try:
1314
import gevent
@@ -58,7 +59,7 @@ def run(self):
5859
while self.alive:
5960
self.notify()
6061
if self.ppid != os.getppid():
61-
self.log.info("Parent changed, shutting down: %s", self)
62+
log.info("Parent changed, shutting down: %s", self)
6263
break
6364

6465
gevent.sleep(1.0)

0 commit comments

Comments
 (0)