fix bug that can not start up when log dir not exist
fix bug