Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Schürg
actl
Commits
69bc037b
Commit
69bc037b
authored
Jun 01, 2021
by
Simon Schürg
🚀
Browse files
Print HTTP responses only on error
parent
6e428d07
Changes
1
Hide whitespace changes
Inline
Side-by-side
internal/logging.go
View file @
69bc037b
...
...
@@ -19,7 +19,8 @@ func FatalOnError(err error) {
// LogRestyResp logs a resty http response in only two lines
func
LogRestyResp
(
resp
*
resty
.
Response
,
err
error
)
{
exitOnErr
:=
true
verbose
:=
true
// Print only on http client errors and error http responses
verbose
:=
false
if
err
!=
nil
{
fmt
.
Println
(
err
)
if
exitOnErr
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment