From: Florian Forster Date: Mon, 29 Jan 2018 10:54:22 +0000 (+0100) Subject: Add warning message on Fitbit signature mismatch. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=208a2371b3864c28da3cfa90b1670b85163a3092;p=kraftakt.git Add warning message on Fitbit signature mismatch. --- diff --git a/kraftakt.go b/kraftakt.go index 66668a6..afb5e4d 100644 --- a/kraftakt.go +++ b/kraftakt.go @@ -197,6 +197,7 @@ func fitbitNotifyHandler(ctx context.Context, w http.ResponseWriter, r *http.Req // Fitbit recommendation: "If signature verification fails, you should // respond with a 404" if !fitbit.CheckSignature(ctx, data, r.Header.Get("X-Fitbit-Signature")) { + log.Warningf(ctx, "signature mismatch") w.WriteHeader(http.StatusNotFound) return nil }