From: vijeth-aradhya Date: Thu, 10 Aug 2017 14:09:33 +0000 (+0530) Subject: Change entry.title to entry.id in logging X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=40f7e8d191080bc82d361c4fbdb8af651b77bfe1;p=mediagoblin.git Change entry.title to entry.id in logging Related to #5 --- diff --git a/mediagoblin/media_types/video/processing.py b/mediagoblin/media_types/video/processing.py index dc7264fc..e343930b 100644 --- a/mediagoblin/media_types/video/processing.py +++ b/mediagoblin/media_types/video/processing.py @@ -179,8 +179,8 @@ def main_task(entry_id, resolution, medium_size, **process_info): # Make state of entry as processed entry.state = u'processed' entry.save() - _log.info(u'{0} media entry is processed (transcoded to default resolution' - '): {1}'.format(unicode(entry.title), unicode(medium_size))) + _log.info(u'MediaEntry ID {0} is processed (transcoded to default resolution' + '): {1}'.format(unicode(entry.id), unicode(medium_size))) _log.debug('MediaEntry processed') @@ -194,7 +194,7 @@ def complimentary_task(entry_id, resolution, medium_size, **process_info): processor.common_setup(resolution) processor.transcode(medium_size=tuple(medium_size), vp8_quality=process_info['vp8_quality'], vp8_threads=process_info['vp8_threads'], vorbis_quality=process_info['vorbis_quality']) - _log.info(u'{0} media entry is transcoded to {1}'.format(unicode(entry.title), unicode(medium_size))) + _log.info(u'MediaEntry ID {0} is transcoded to {1}'.format(unicode(entry.id), unicode(medium_size))) @celery.task()