From 88c49d6371f60bcb1951e1d2d2960e23a8d4e9a4 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 21 Jun 2014 00:15:01 -0700 Subject: [PATCH] Log instance IDs in internal channel callbacks. --- channel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/channel.py b/channel.py index ebe36d8..21859b8 100644 --- a/channel.py +++ b/channel.py @@ -29,6 +29,7 @@ class OnChannelConnect(webapp2.RequestHandler): @db.transactional() def post(self): instance_id = self.request.get('from') + logging.info('Instance: %s', instance_id) instance = models.Instance.FromID(instance_id) if not instance: logging.warning('Channel opened with invalid instance_id: %s', instance_id) @@ -46,6 +47,7 @@ class OnChannelDisconnect(webapp2.RequestHandler): @utils.local_namespace def post(self): instance_id = self.request.get('from') + logging.info('Instance: %s', instance_id) instance_key = db.Key.from_path('Instance', instance_id) subscriptions = list(models.Subscription.all().filter('instance =', instance_key))