add logging of rows affected by each script