Fix exception logging format.