[libvirt] [PATCH 2/5] Print any exception that occurs in authentication callback

Eric Blake eblake at redhat.com
Mon Sep 10 17:48:12 UTC 2012


On 09/10/2012 09:50 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> If an exception occurs in the python callback for openAuth()
> the stack trace isn't seen by the apps, since this code is
> called from libvirt context. To aid diagnostics, print the
> error to stderr at least
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  python/libvirt-override.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Better than nothing.  I don't know the callstack here well enough to
know if we could eventually pass a NULL back to the outer python caller,
so that python could ultimately display a stacktrace, so for now, I'm
fine giving:

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120910/3ad972b5/attachment-0001.sig>


More information about the libvir-list mailing list