changeset 168:8528311427e0

replace a few more legacy logging instances
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 31 Jan 2011 18:18:38 -0800
parents f603922dd5c8
children 8e656a659ffa
files autobot/changes/poller.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)