Skip to content

Commit f130a8d

Browse files
committed
Log the base32 request id when auto signing
Oops. Was logging the raw bytes instead which led to ugly slack messages.
1 parent 3e9582a commit f130a8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sign_certd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ func (h *certRequestHandler) createSigningRequest(rw http.ResponseWriter, req *h
226226

227227
var returnStatus int
228228
if signed {
229-
slackMsg := fmt.Sprintf("SSH cert request %s auto signed.", requestID)
229+
slackMsg := fmt.Sprintf("SSH cert request %s auto signed.", requestIDStr)
230230
err := ssh_ca_client.PostToSlack(config.SlackUrl, config.SlackChannel, slackMsg)
231231
if err != nil {
232-
log.Printf("Unable to post to slack for %s: %v", requestID, err)
232+
log.Printf("Unable to post to slack for %s: %v", requestIDStr, err)
233233
}
234234
returnStatus = http.StatusAccepted
235235
} else {

0 commit comments

Comments
 (0)