Added a temp log statement to track buffer state on writes