fix log rotate read issue