Skip to content

Commit 65de9fb

Browse files
VA: Fix two IsCAAValid bugs (#7829)
Fix two bugs introduced in #7816: - Fix localLatency time for CAA rechecking is always 0 - Fix logEvent.InternalError is no longer being written to log
1 parent 577a1e3 commit 65de9fb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

va/caa.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,12 @@ func (va *ValidationAuthorityImpl) IsCAAValid(ctx context.Context, req *vapb.IsC
9090
}
9191

9292
internalErr = va.checkCAA(ctx, acmeID, params)
93+
94+
// Stop the clock for local check latency.
95+
localLatency = va.clk.Since(start)
96+
9397
if internalErr != nil {
98+
logEvent.InternalError = internalErr.Error()
9499
prob = detailedError(internalErr)
95100
prob.Detail = fmt.Sprintf("While processing CAA for %s: %s", req.Domain, prob.Detail)
96101
} else if remoteCAAResults != nil {

0 commit comments

Comments
 (0)