log the error message for key failure
Ted Unangst tedu@tedunangst.com
Fri, 11 Sep 2020 13:26:23 -0400
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
web.go
→
web.go
@@ -445,7 +445,7 @@ savingthrow(keyname)
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")