diff -r 72210779ff6d -r 4341fb713b14 server/sources/datafeed.py --- a/server/sources/datafeed.py Wed Nov 09 14:34:03 2011 +0100 +++ b/server/sources/datafeed.py Wed Nov 09 15:13:13 2011 +0100 @@ -225,8 +225,9 @@ except IOError, exc: if raise_on_error: raise - self.error('could not pull data while processing %s: %s', - url, exc) + parser.import_log.record_error( + 'could not pull data while processing %s: %s' + % (url, exc)) error = True except Exception, exc: if raise_on_error: @@ -320,6 +321,8 @@ # XXX use critical so they are seen during tests. Should consider # raise_on_error instead? self.source.critical('error while creating %s: %s', etype, ex) + self.import_log.record_error('error while creating %s: %s' + % (etype, ex)) return None if eid < 0: # entity has been moved away from its original source @@ -365,7 +368,7 @@ except Exception, ex: if raise_on_error: raise - self.source.error(str(ex)) + self.import_log.record_error(str(ex)) return True error = False for args in parsed: