include error message here too

This commit is contained in:
Ted Unangst 2020-09-11 15:52:35 -04:00
parent 7dd1b8c851
commit f242294ef8
1 changed files with 1 additions and 1 deletions

2
web.go
View File

@ -349,7 +349,7 @@ func inbox(w http.ResponseWriter, r *http.Request) {
keyname, err = httpsig.VerifyRequest(r, payload, zaggy) keyname, err = httpsig.VerifyRequest(r, payload, zaggy)
} }
if err != nil { 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 != "" { if keyname != "" {
log.Printf("bad signature from %s", keyname) log.Printf("bad signature from %s", keyname)
io.WriteString(os.Stdout, "bad payload\n") io.WriteString(os.Stdout, "bad payload\n")