fix: no error is logged when the assertion fails

This commit is contained in:
徐聪
2022-01-18 21:33:41 +08:00
parent 908277efe6
commit 62f54162e4
2 changed files with 9 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ func (s *requestStats) logTransaction(name string, success bool, responseTime in
s.transactionPassed++
} else {
s.transactionFailed++
s.get(name, "transaction").logError("")
}
s.get(name, "transaction").log(responseTime, contentLength)
}