BOSTON (AP) – An American Airlines jetliner from Chicago declared an emergency as it approached Boston but has landed safely without incident.

The airline says Flight 1172 from O’Hare International Airport was near the end of its journey to Boston’s Logan International Airport when a cockpit light indicated an unspecified potential mechanical problem and the pilot called in an emergency as a precaution.

READ MORE: Chicago Weather: Winter Weather Advisories In Effect; Snow Arrives For Monday Morning Commute

A spokeswoman says the flight landed at Logan at 12:32 a.m. Thursday, and the aircraft was taken out of service for evaluation by maintenance personnel.

READ MORE: MISSING: Felicity Barr, 16, Last Seen In Aurora

The airline says there were 159 passengers and six crew members aboard.

MORE NEWS: Melissa Ortega, 8-Year-Old Girl Killed In Little Village Shooting, Had Just Emigrated From Mexico

Copyright 2019 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.