Fix to output log parameter
Fix not to wait if taskQueue is not empty