only use the unique part of challenge string in logs

This commit is contained in:
kim 2025-04-24 12:58:08 +01:00
commit 711aaada87

View file

@ -154,7 +154,7 @@ func (m *nollamas) Serve(c *gin.Context) {
// Prepare new log entry with challenge.
l := log.WithContext(c.Request.Context())
l = l.WithField("challenge", challenge)
l = l.WithField("challenge", challenge[:len(challenge)/4])
// Check query to see if an in-progress
// challenge solution has been provided.