log the error message for key failure

This commit is contained in:
Ted Unangst 2020-09-11 13:26:23 -04:00
parent d79a5ff188
commit 44702acf96
1 changed files with 1 additions and 1 deletions

2
web.go
View File

@ -445,7 +445,7 @@ func serverinbox(w http.ResponseWriter, r *http.Request) {
keyname, err = httpsig.VerifyRequest(r, payload, zaggy)
}
if err != nil {
log.Printf("inbox message failed signature for %s from %s", keyname, r.Header.Get("X-Forwarded-For"))
log.Printf("inbox message failed signature for %s from %s: %s", keyname, r.Header.Get("X-Forwarded-For"), err)
if keyname != "" {
log.Printf("bad signature from %s", keyname)
io.WriteString(os.Stdout, "bad payload\n")