Only log output and write progress to db if it has changed
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Wed, 19 Dec 2012 14:43:38 +0000 (15:43 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Wed, 19 Dec 2012 14:48:30 +0000 (15:48 +0100)
commit0efc4e4dbf6373d5a5b1a4b1fd2e3f9cdc403ab6
tree4f9ac77f645f22319d0117966b4b40da9a929d4a
parent4d9b426ccfe4b6a3c875e75399011d7cf25aa379
Only log output and write progress to db if it has changed

De-noisify the transcoding log and db updates. Previously we would log
and save the progress percentage every second, even if it had not changed
at all. Save progress:oercentage in the Transcoder and only log/update
when the percentage has actually changed.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
mediagoblin/media_types/video/transcoders.py