Update cmd/clef/main.go

Romeo Rosete

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Romeo Rosete 2025-05-21 11:40:31 -04:00 committed by GitHub
parent c30bb9e638
commit 50beb6e6fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1108,7 +1108,7 @@ func GenDoc(ctx *cli.Context) error {
if strings.Contains(string(data), "[REDACTED]") {
output = append(output, fmt.Sprintf("### %s\n\n%s\n\nExample:\n```json\n%s\n```", name, desc, data))
} else {
log.Error("Sensitive data detected in output, skipping logging")
log.Error("Sensitive data detected in output, skipping logging", "entry", name)
}
} else {
log.Error("Error generating output", "err", err)