Commit 8fb99a9e authored by Michal Čihař's avatar Michal Čihař

Better logging of update

parent f8247702
...@@ -151,7 +151,7 @@ class SubProject(models.Model): ...@@ -151,7 +151,7 @@ class SubProject(models.Model):
''' '''
blobs = self.get_translation_blobs() blobs = self.get_translation_blobs()
for code, path, blob in blobs: for code, path, blob in blobs:
logger.info('processing %s', path) logger.info('checking %s', path)
Translation.objects.update_from_blob(self, code, path, blob, force) Translation.objects.update_from_blob(self, code, path, blob, force)
def get_lang_code(self, path): def get_lang_code(self, path):
...@@ -212,6 +212,8 @@ class Translation(models.Model): ...@@ -212,6 +212,8 @@ class Translation(models.Model):
if self.revision == blob.hexsha and not force: if self.revision == blob.hexsha and not force:
return return
logger.info('processing %s, revision has changed', self.filename)
oldunits = set(self.unit_set.all().values_list('id', flat = True)) oldunits = set(self.unit_set.all().values_list('id', flat = True))
# Load po file # Load po file
......
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