logging should not be in assigntask, only happened at task assigned