Engine light stays on all the time on 2007 Cadillac DTS

The delivership put new gas cap on thinking it was it, but light came on again & stays on.

Asked by for the 2007 Cadillac DTS
It is necessary to retrieve the Diagnostic Trouble Codes stored in yours vehicle's computer to diagnose the problem.