I looked at the greenletbound option before, it won't work because you need to make EVERYTHING work with gevent (for example, the syslog handler)


I'm thinking about adding a logbook.patch_gevent() that will do the making if it is called before bounding stuff 

—
Sent from Mailbox for iPhone

On Wed, May 29, 2013 at 4:07 AM, Nick <notifications@github.com> wrote:

>> @@ -584,7 +590,11 @@ def thread_name(self):
>>          if the log record is passed to another thread, :meth:`pull_information`
>>          was called in the old thread.
>>          """
>> -        return threading.currentThread().getName()
>> +        try:
>> +            import gevent
>> +        except ImportError:
>> +            return threading.currentThread().getName()
>> +        return "greenlet"
> I agree with this. Perhaps the way to go about it is to extend StackedObject, ContextObject, and ContextStackManager as was attempted in 
> https://github.com/zacharyvoase/logbook-gevent/blob/master/lib/logbook_gevent.py
> to support a greenletbound() style.  I can't think of a nice way to do it transparently.
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/mitsuhiko/logbook/pull/80/files#r4426371