Reputation: 3651
I have a code like:
log = logging.getLogger(__file__)
def func():
print "1"
log.debug("Printed")
g = gevent.spawn(func)
g.join()
but when I ran it my log doesn't show in shell. Any ideas? Is there a better way to do logging inside gevent based coroutines?
Upvotes: 5
Views: 3445