mirror of
git://git.gnupg.org/gnupg.git
synced 2024-06-03 22:48:03 +02:00
gpgscm: Make logging less verbose and more useful.
* tests/gpgscm/tests.scm (call-with-io): When being verbose, include the pid in the output, and avoid duplicating the command arguments. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
a71f4142e1
commit
679920781a
|
@ -104,10 +104,11 @@
|
||||||
(es-fclose (:stdout h))
|
(es-fclose (:stdout h))
|
||||||
(es-fclose (:stderr h))
|
(es-fclose (:stderr h))
|
||||||
(if (> (*verbose*) 2)
|
(if (> (*verbose*) 2)
|
||||||
(begin
|
(info "Child" (:pid h) "returned:"
|
||||||
(echo (stringify what) "returned:" result)
|
`((command ,(stringify what))
|
||||||
(echo (stringify what) "wrote to stdout:" out)
|
(status ,result)
|
||||||
(echo (stringify what) "wrote to stderr:" err)))
|
(stdout ,out)
|
||||||
|
(stderr ,err))))
|
||||||
(list result out err))))
|
(list result out err))))
|
||||||
|
|
||||||
;; Accessor function for the results of 'call-with-io'. ':stdout' and
|
;; Accessor function for the results of 'call-with-io'. ':stdout' and
|
||||||
|
|
Loading…
Reference in New Issue
Block a user