Commit 39623459 authored by Łukasz Nowak's avatar Łukasz Nowak

Inform a bit more about progress.

parent c4bcc4cd
...@@ -303,6 +303,7 @@ class ERP5Updater(object): ...@@ -303,6 +303,7 @@ class ERP5Updater(object):
def updateERP5Site(self): def updateERP5Site(self):
if not self.isERP5Present(): if not self.isERP5Present():
self.log('No site present, adding new with id %r' % self.site_id)
self.POST('/manage_addProduct/ERP5/manage_addERP5Site', { self.POST('/manage_addProduct/ERP5/manage_addERP5Site', {
"id": self.site_id, "id": self.site_id,
"erp5_catalog_storage": self.erp5_catalog_storage, "erp5_catalog_storage": self.erp5_catalog_storage,
...@@ -330,6 +331,7 @@ class ERP5Updater(object): ...@@ -330,6 +331,7 @@ class ERP5Updater(object):
def run(self): def run(self):
""" Keep running until kill""" """ Keep running until kill"""
while 1: while 1:
self.log('Sleeping for %s' % self.short_sleeping_time)
time.sleep(self.short_sleeping_time) time.sleep(self.short_sleeping_time)
if not self.updateERP5Site(): if not self.updateERP5Site():
self.loadSystemSignatureDict() self.loadSystemSignatureDict()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment