[libvirt] [PATCH v2 6/8] Include error domain and code in log messages from errors
Eric Blake
eblake at redhat.com
Fri Feb 28 17:16:34 UTC 2014
On 02/24/2014 09:49 AM, Daniel P. Berrange wrote:
> When a virError is raised, pass the error domain and code
> onto the systemd journald using metadata fields.
>
> This allows error messages to be queried by code eg
>
> $ journalctl LIBVIRT_CODE=43
Requires the user to do a reverse lookup from the header file, but as we
have declared our public error enums as stable, it's not going to
change, so this is reasonable.
>
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> docs/logging.html.in | 4 ++++
> src/util/virerror.c | 8 +++++++-
> 2 files changed, 11 insertions(+), 1 deletion(-)
>
ACK
--
Eric Blake eblake 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: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140228/efadc44f/attachment-0001.sig>
More information about the libvir-list
mailing list