Added a logger to the new thread