Mercurial > piecrust2
comparison piecrust/baking/baker.py @ 1040:506a5cb1e942
bake: Fix exception verbose reporting for bake worker errors.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 18 Jan 2018 21:22:42 -0800 |
parents | 3c6e6e7b9639 |
children | 7b64eb5bbc81 |
comparison
equal
deleted
inserted
replaced
1039:3133ddc3cb73 | 1040:506a5cb1e942 |
---|---|
394 e.errors.append(exc_data['value']) | 394 e.errors.append(exc_data['value']) |
395 self._logWorkerException(item_spec, exc_data) | 395 self._logWorkerException(item_spec, exc_data) |
396 | 396 |
397 # Log debug stuff. | 397 # Log debug stuff. |
398 if self.app.debug: | 398 if self.app.debug: |
399 logger.error(exc_data.traceback) | 399 logger.error(exc_data['traceback']) |
400 | 400 |
401 | 401 |
402 class _PoolUserData: | 402 class _PoolUserData: |
403 def __init__(self, baker, ppmngr): | 403 def __init__(self, baker, ppmngr): |
404 self.baker = baker | 404 self.baker = baker |