fixed log dir and file owner setting