Skip to content

Commit ee337cd

Browse files
committed
Update wfe2.
1 parent a7da3fc commit ee337cd

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

web/context.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ type RequestEvent struct {
1717
// whitespace-separated ahead of the JSON. This saves bytes in the logs since
1818
// we don't have to include field names, quotes, or commas -- all of these
1919
// fields are known to not include whitespace.
20-
Method string `json:"-,omitempty"`
21-
Endpoint string `json:"-,omitempty"`
22-
Requester int64 `json:"-,omitempty"`
23-
Code int `json:"-,omitempty"`
24-
Latency float64 `json:"-,omitempty"`
25-
RealIP string `json:"-,omitempty"`
20+
Method string `json:"-"`
21+
Endpoint string `json:"-"`
22+
Requester int64 `json:"-"`
23+
Code int `json:"-"`
24+
Latency float64 `json:"-"`
25+
RealIP string `json:"-"`
2626

2727
Slug string `json:",omitempty"`
2828
InternalErrors []string `json:",omitempty"`

wfe2/wfe.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -860,8 +860,10 @@ func (wfe *WebFrontEndImpl) Challenge(
860860
challenge := authz.Challenges[challengeIndex]
861861

862862
logEvent.Extra["ChallengeType"] = challenge.Type
863-
logEvent.Extra["Identifier"] = authz.Identifier
864-
logEvent.Extra["AuthorizationStatus"] = authz.Status
863+
if authz.Identifier.Type == core.IdentifierDNS {
864+
logEvent.DNSName = authz.Identifier.Value
865+
}
866+
logEvent.Status = string(authz.Status)
865867

866868
switch request.Method {
867869
case "GET", "HEAD":
@@ -1244,8 +1246,10 @@ func (wfe *WebFrontEndImpl) Authorization(ctx context.Context, logEvent *web.Req
12441246
}
12451247
return
12461248
}
1247-
logEvent.Extra["Identifier"] = authz.Identifier
1248-
logEvent.Extra["AuthorizationStatus"] = authz.Status
1249+
if authz.Identifier.Type == core.IdentifierDNS {
1250+
logEvent.DNSName = authz.Identifier.Value
1251+
}
1252+
logEvent.Status = string(authz.Status)
12491253

12501254
// After expiring, authorizations are inaccessible
12511255
if authz.Expires == nil || authz.Expires.Before(wfe.clk.Now()) {

0 commit comments

Comments
 (0)