Thread pool logging

Add type information to bad alloc log