> If there is any interest in this by the py lib maintainers

As a user I'm definitely interested in this, currently I deal with
this style of problem by building my own marshaling layer over the
channels, your "nasty trick" will allow me to simplify things quite a
bit and your proposed change would improve them even further.

Gordon

On Fri, Apr 24, 2009 at 7:10 AM, William McVey <w...@cisco.com> wrote:
> On Wed, 2009-04-22 at 10:54 -0400, William McVey wrote:
>> I'm using py.execnet with the SshGateway and I'd like to fire off
>> logging messages that get sent over the ssh connection. I was wondering
>> if someone has already coded up a logging handler for this.
>
> After a bit of frustration, I have remote logging over an execnet
> channel working, with no changes to the py.execnet code itself to
> support this. I had to resort to a nasty trick in order to get the
> channel to send and receive the logging.LogRecord objects. I think this
> could be made a lot cleaner if py.execnet were tweaked to allow defining
> a dictionary of namespaces to use when deserializing objects coming over
> a channel. If there is any interest in this by the py lib maintainers,
> I'll go ahead and fork the code using bitbucket, add this capability in
> (probably as a new method on the channel object) and issue a pull
> notification.
>
> Anyway, attached is a simple demo script that shows the ExecNetHandler
> logging handler in action. I'd love to hear feedback on this.
_______________________________________________
py-dev mailing list
py-dev@codespeak.net
http://codespeak.net/mailman/listinfo/py-dev

Reply via email to