# HG changeset patch # User Jeff Hammel # Date 1296526718 28800 # Node ID 8528311427e0d14af9bbb1c0780ab2dc760d31d6 # Parent f603922dd5c8d7be8187dc25afc7c72258ffc68d replace a few more legacy logging instances diff -r f603922dd5c8 -r 8528311427e0 autobot/changes/poller.py --- a/autobot/changes/poller.py Mon Jan 31 18:15:48 2011 -0800 +++ b/autobot/changes/poller.py Mon Jan 31 18:18:38 2011 -0800 @@ -197,7 +197,7 @@ def _process_change(self, something, rev): self.commitInfo = {} - log.msg('%s: processing change %s (something=%s)' % (self.name, rev, something)) + self.log('processing change %s (something=%s)' % (rev, something)) d = defer.succeed(None) d.addCallback(self._get_commit_timestamp, rev) d.addCallback(self._get_commit_name, rev) @@ -306,10 +306,10 @@ return d def _catch_up(self, rev): - log.msg('%s: catching up to %s' % (self.name, self.postHash)) if self.changeCount == 0: - log.msg('%s: no changes, no catch_up' % self.name) + self.log('%s: no changes, no catch_up' % self.postHash) return + self.log('catching up to %s' % self.postHash) args = ['update'] d = utils.getProcessOutputAndValue(self.binary, args, path=self.workdir, env=dict(PATH=os.environ['PATH'])) d.addCallback(self._convert_nonzero_to_failure)