more robust solution, able to report multiple internal errors in one request
more robust solution, able to report multiple internal errors in one request

Also wrapped _prepare_log_records, which may possibly throw exceptions from buggy self._handler.format(record).

piranha/firepython,binaryage/firelogger.py