Skip to content

Commit

Permalink
Log the base32 request id when auto signing
Browse files Browse the repository at this point in the history
Oops. Was logging the raw bytes instead which led to ugly slack
messages.
  • Loading branch information
bobveznat committed Sep 18, 2016
1 parent 3e9582a commit f130a8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sign_certd.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@ func (h *certRequestHandler) createSigningRequest(rw http.ResponseWriter, req *h

var returnStatus int
if signed {
slackMsg := fmt.Sprintf("SSH cert request %s auto signed.", requestID)
slackMsg := fmt.Sprintf("SSH cert request %s auto signed.", requestIDStr)
err := ssh_ca_client.PostToSlack(config.SlackUrl, config.SlackChannel, slackMsg)
if err != nil {
log.Printf("Unable to post to slack for %s: %v", requestID, err)
log.Printf("Unable to post to slack for %s: %v", requestIDStr, err)
}
returnStatus = http.StatusAccepted
} else {
Expand Down

0 comments on commit f130a8d

Please sign in to comment.