no reason to copy log rather than pass ptr

no reason to copy log rather than pass ptr