Fix log performance