diff --git a/readthedocs/projects/tasks.py b/readthedocs/projects/tasks.py index 6a5342f3b2c..67f5891bd33 100644 --- a/readthedocs/projects/tasks.py +++ b/readthedocs/projects/tasks.py @@ -151,6 +151,15 @@ def sync_repo(self): except Exception: log.exception('Unknown Sync Versions Exception') + # TODO this is duplicated in the classes below, and this should be + # refactored out anyways, as calling from the method removes the original + # caller from logging. + def _log(self, msg): + log.info(LOG_TEMPLATE + .format(project=self.project.slug, + version=self.version.slug, + msg=msg)) + class SyncRepositoryTask(SyncRepositoryMixin, Task):