Skip to content

Commit

Permalink
api_testcase.go: Only log request & response if explicit network flag is
Browse files Browse the repository at this point in the history
set or it is not a continueonfailure testcase
  • Loading branch information
Simon Frey committed May 3, 2019
1 parent 1a6f1c6 commit d76f2c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api_testcase.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,13 @@ func (testCase Case) executeRequest(counter int) (
}

func (testCase Case) LogResp(response api.Response) {
if !testCase.logNetwork {
if !testCase.logNetwork && !testCase.ContinueOnFailure {
log.Debugf("[RESPONSE]:\n%s\n", response.ToString())
}
}

func (testCase Case) LogReq(request api.Request) {
if !testCase.logNetwork {
if !testCase.logNetwork && !testCase.ContinueOnFailure {
log.Debugf("[REQUEST]:\n%s\n", request.ToString())
}
}
Expand Down

0 comments on commit d76f2c7

Please sign in to comment.