From 44702acf96e7bd060fe0ceb39cfbfef498b7dcec Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 11 Sep 2020 13:26:23 -0400 Subject: [PATCH] log the error message for key failure --- web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web.go b/web.go index cfe04fd..f562829 100644 --- a/web.go +++ b/web.go @@ -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")