Skip to content

Commit 43667a0

Browse files
authored
Hotfix for adding logging call back into project sync task (readthedocs#3657)
* Hotfix for adding logging call back into project sync task It exists in subclasses, but we should refactor it out anyways. * Minor lint fixed
1 parent 72e5f38 commit 43667a0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

readthedocs/projects/tasks.py

+9
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,15 @@ def sync_repo(self):
151151
except Exception:
152152
log.exception('Unknown Sync Versions Exception')
153153

154+
# TODO this is duplicated in the classes below, and this should be
155+
# refactored out anyways, as calling from the method removes the original
156+
# caller from logging.
157+
def _log(self, msg):
158+
log.info(LOG_TEMPLATE
159+
.format(project=self.project.slug,
160+
version=self.version.slug,
161+
msg=msg))
162+
154163

155164
class SyncRepositoryTask(SyncRepositoryMixin, Task):
156165

0 commit comments

Comments
 (0)