gpgm-rs (Rust wrapper) Re: gpgme: debugging trace callback

Bernhard Reiter bernhard at intevation.de
Mon Jun 17 17:02:13 CEST 2024


Hi Cryolitia

Am Montag 03 Juni 2024 11:10:15 schrieb Cryolitia PukNgae via Gnupg-devel:
> To whom it may concern,
>         I'm using a rust binding gpgme-rs of gpgme to develop my program. I
> would like to know if there's a way to set a callback to receive the
> debugging trace log, instead of printing to stderr or file.

as far as I know there is no callback traceback possibility.

gpgme uses 
  https://www.gnupg.org/software/libgpg-error/index.html
  https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgpg-error.git;a=tree

So a way to catch the traceback logs should probably look for the technical 
possibilities there first. (Like using a socket or something else, maybe a 
memory stream also works, I do not know.)

>         I have create an issue in gpgme-rs:
> https://github.com/gpg-rs/gpgme/issues/47

BTW I've listed gpgme-rs at  
  https://wiki.gnupg.org/APIs
now.

Best Regards,
Bernhard
-- 
https://intevation.de/~bernhard   +49 541 33 508 3-3
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20240617/423c90a8/attachment.sig>


More information about the Gnupg-devel mailing list