Add thread-id logging to the schedulers.