By the way the exception happened should be logged instead of handling stack at
|
logger.warn('{}: Cache not writen {} due to exception: \n{}'.format( |
- logger.warn('{}: Cache not writen {} due to exception: \n{}'.format(
- self, c, traceback.format_exc()
- ))
+ logger.warning('{}: Cache not writen {} due to exception:'.format(
+ self, c,
+ ), exc_info=True)