Better logging of update

This commit is contained in:
Michal Čihař 2012-02-29 11:52:32 +01:00
parent f824770223
commit 8fb99a9eee

View File

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