From 51c94afc942687a447069f43de406e31c319a64e Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 30 Jan 2018 20:45:32 +0100 Subject: [PATCH] Log notification payloads to debug logs. --- kraftakt.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kraftakt.go b/kraftakt.go index e84b03a..f6b3d9c 100644 --- a/kraftakt.go +++ b/kraftakt.go @@ -287,6 +287,8 @@ func fitbitNotifyHandler(ctx context.Context, w http.ResponseWriter, r *http.Req // handleNotifications parses fitbit notifications and requests the individual // activities from Fitbit. It is executed asynchronously via the delay package. func handleNotifications(ctx context.Context, payload []byte) error { + log.Debugf(ctx, "NOTIFY -> %s", payload) + if err := app.LoadConfig(ctx); err != nil { return err } -- 2.11.0