Corrected error logging format