[#54339548] Added hook for logging when the pool limit is reached.