[Libguestfs] [PATCH nbdkit] python: Try harder to print the full traceback on error.
Nir Soffer
nsoffer at redhat.com
Wed Aug 8 15:20:16 UTC 2018
On Wed, Aug 8, 2018 at 6:17 PM Richard W.M. Jones <rjones at redhat.com> wrote:
> On Wed, Aug 08, 2018 at 06:08:45PM +0300, Nir Soffer wrote:
> > Can we simplify this these 2 calls?
> >
> > nbdkit_error ("%s: %s: error", script, callback);
> > PyErr_PrintEx (0);
>
> No, we want to ensure errors go through the nbdkit_error function so
> that we can in future implement syslog logging.
>
> > In this case we don't to fallback to the simple error print.
>
> Do you mean in the case of using PyErr_PrintEx or more generally
> falling back is a problem?
>
Just for PyErr_PrintEx, since it cannot fail.
>
> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat
> http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-builder quickly builds VMs from scratch
> http://libguestfs.org/virt-builder.1.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20180808/77b9dbd8/attachment.htm>
More information about the Libguestfs
mailing list