Make logPoolState() "public" for testing.