tuning error logging