log down errors