More than 10,000 gallons of spilled sewage prompted Long Beach to shut its shoreline to swimmers Tuesday “out of an abundance of caution,” city officials said.

A grease blockage in a sewage line in Glendale caused the spill, sending 10,400 gallons of sewage into the Los Angeles River, which empties out in Long Beach, authorities said in a statement.

Long Beach City Health Officer Dr. Anissa Davis said people should avoid any contact with the water along the city’s seven miles of public beaches until testing confirms bacteria levels are safely back to normal.

Health-inspection teams began testing the water after being notified of the spill by Glendale, authorities said.

“Water testing will continue until results comply with state water-quality standards,” the city said in a statement.

You can check the latest water-quality levels by calling 562-570-4199 or visiting longbeach.gov/beachwaterquality.