Added debug logger for thread start() function.