Log all the collected errors to the standard error.
(self)
| 72 | self._errors = [] |
| 73 | |
| 74 | def log_all(self): |
| 75 | """Log all the collected errors to the standard error.""" |
| 76 | template = 'ERROR:\n output file name: %s\n %s\n\n' |
| 77 | |
| 78 | for full_name, message in self._errors: |
| 79 | logging.warn(template, full_name, message) |
| 80 | |
| 81 | def append(self, full_name, message): |
| 82 | """Add an error to the collection. |