From f1acb1c2891ade2daa46e6e0f5fbafc1d7d6dd05 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 28 Jan 2018 20:56:28 +0100 Subject: [PATCH 1/1] Warn about unexpected notification types. --- gfitsync.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gfitsync.go b/gfitsync.go index 2c9a54b..9eadde9 100644 --- a/gfitsync.go +++ b/gfitsync.go @@ -209,6 +209,7 @@ func handleNotifications(ctx context.Context, payload []byte) error { for _, s := range subscriptions { if s.CollectionType != "activities" { + log.Warningf(ctx, "ignoring collection type %q", s.CollectionType) continue } -- 2.11.0