#407 Print response data from Pagure for debugging
Merged by onosek. Opened by onosek.
onosek/fedpkg pagure_debug  into  master

Download 407.patch

When fedpkg communicates with a web API (Pagure or DistGit), prints
(json) response data for debugging. The response is shown when there
is not OK result and verbose mode has to be enabled.

Fixes: #396
JIRA: RHELCMP-486
Signed-off-by: Ondrej Nosek onosek@redhat.com

1) Is it better to show the response data always (of course with the "debug" mode enabled) or just when non-OK result returns (default)?
2) Actually, "debug" mode is enabled with '--verbose' | '-v' param and not with '--debug'. Maybe some general reconsideration of these params is needed.

:thumbsup: I wouldn't worry about printing the response all the time. It may be interesting even on success.

rebased onto a2746ffd88ab76c99030ab6e58877428d018cfd8

rebased onto c0556976eb81208687d44ea9da805b04334aef05

The response is shown always (in "debug" mode).

rebased onto 257185adc794380b5f1be015c7f6cff91a0e95fb

Pull-Request has been merged by onosek

Metadata