From: Florian Forster Date: Tue, 30 Jan 2018 19:45:32 +0000 (+0100) Subject: Log notification payloads to debug logs. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=51c94afc942687a447069f43de406e31c319a64e;p=kraftakt.git Log notification payloads to debug logs. --- 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 }