(self, failure, request, spider, errmsg=None)
return {
            'level': logging.ERROR,
            'msg': msg,
            'args': args,
        }
Logs a download error message from a spider (typically coming from
        the engine).

        .. versionadded:: 2.0
Logs a download error message from a spider (typically coming from
        the engine).
Logs a download error message from a spider ( typically coming from the engine ) .
def download_error(self, failure, request, spider, errmsg=None):
        """Logs a download error message from a spider (typically coming from
        the engine).

        .. versionadded:: 2.0
        """
        args = {'request': request}
        if errmsg:
            msg = DOWNLOADERRORMSG_LONG
            args['errmsg'] = errmsg
        else:
            msg = DOWNLOADERRORMSG_SHORT
        return {
            'level': logging.ERROR,
            'msg': msg,
            'args': args,
        }
def download_error ( self , failure , request , spider , errmsg = None ) : args = { 'request' : request } if errmsg : msg = DOWNLOADERRORMSG_LONG args [ 'errmsg' ] = errmsg else : msg = DOWNLOADERRORMSG_SHORT return { 'level' : logging . ERROR , 'msg' : msg , 'args' : args , }