Warn about unexpected notification types.
authorFlorian Forster <ff@octo.it>
Sun, 28 Jan 2018 19:56:28 +0000 (20:56 +0100)
committerFlorian Forster <ff@octo.it>
Sun, 28 Jan 2018 19:56:28 +0000 (20:56 +0100)
gfitsync.go

index 2c9a54b..9eadde9 100644 (file)
@@ -209,6 +209,7 @@ func handleNotifications(ctx context.Context, payload []byte) error {
 
        for _, s := range subscriptions {
                if s.CollectionType != "activities" {
 
        for _, s := range subscriptions {
                if s.CollectionType != "activities" {
+                       log.Warningf(ctx, "ignoring collection type %q", s.CollectionType)
                        continue
                }
 
                        continue
                }