Update error logging