Skip to content
Snippets Groups Projects
Commit bcd0e285 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fixed logging exceptions in `MetrifiedThreadPoolExecutor`

parent d62853a8
No related branches found
No related tags found
No related merge requests found
......@@ -3,3 +3,4 @@
* more cache classes are now generic
* added `MetrifiedThreadPoolExecutor.get_queue_length`
* `ExclusiveWritebackCache.sync` is no longer best effort
* fixed logging exceptions in `MetrifiedThreadPoolExecutor`
__version__ = '2.13.5_a3'
__version__ = '2.13.5_a4'
......@@ -66,8 +66,8 @@ def _worker(executor_reference, work_queue, initializer, initargs):
work_queue.put(None)
return
del executor
except BaseException:
_base.LOGGER.critical('Exception in worker', exc_info=True)
except BaseException as e:
_base.LOGGER.critical('Exception in worker', exc_info=e)
class MetrifiedThreadPoolExecutor(ThreadPoolExecutor):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment