> === modified file 'lib/lp/bugs/scripts/bzremotecomponentfinder.py' > --- lib/lp/bugs/scripts/bzremotecomponentfinder.py 2011-06-02 22:27:11 +0000 > +++ lib/lp/bugs/scripts/bzremotecomponentfinder.py 2011-07-01 02:59:24 +0000 ... > + try: > + self.logger.debug("...Fetching page") > + page_text = bz_bugtracker.getPage() > + except HTTPError, error: > + self.logger.error("Error fetching %s: %s" % ( > + lp_bugtracker.baseurl, error)) > + continue > + except: > + self.logger.error("Failed to access %s" % ( > + lp_bugtracker.baseurl)) > + continue
We logged code failures, or failures we can fix as errors, we issues with other sites as warnings. The faults I saw in testing were dead sites or bad user data...I do not think these cases are errors.
« Back to merge proposal
> === modified file 'lib/lp/ bugs/scripts/ bzremotecompone ntfinder. py' bugs/scripts/ bzremotecompone ntfinder. py 2011-06-02 22:27:11 +0000 bugs/scripts/ bzremotecompone ntfinder. py 2011-07-01 02:59:24 +0000 debug(" ...Fetching page") getPage( ) error(" Error fetching %s: %s" % ( baseurl, error)) error(" Failed to access %s" % ( baseurl) )
> --- lib/lp/
> +++ lib/lp/
...
> + try:
> + self.logger.
> + page_text = bz_bugtracker.
> + except HTTPError, error:
> + self.logger.
> + lp_bugtracker.
> + continue
> + except:
> + self.logger.
> + lp_bugtracker.
> + continue
We logged code failures, or failures we can fix as errors, we issues with
other sites as warnings. The faults I saw in testing were dead sites or
bad user data...I do not think these cases are errors.