mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-15 12:50:47 +02:00
Log all subscription names in subscribe thread (#204)
This commit is contained in:
parent
3ee17aa367
commit
9db19bcb46
1 changed files with 6 additions and 0 deletions
|
|
@ -16,7 +16,13 @@ class SqueakSubscriptionDownloader:
|
|||
|
||||
def sync_subscriptions(self):
|
||||
logger.info("Syncing subscriptions...")
|
||||
subscriptions = self._get_subscriptions()
|
||||
for subscription in subscriptions:
|
||||
logger.info("Syncing subscription: {}".format(subscription))
|
||||
|
||||
def start_running(self):
|
||||
threading.Timer(self.update_interval_s, self.start_running).start()
|
||||
self.sync_subscriptions()
|
||||
|
||||
def _get_subscriptions(self):
|
||||
return self.postgres_db.get_subscriptions()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue