fix log performance