don't print thread number if not in debug mode