Command/CrawlCommand.php
/**
     * Logs a message that will tell the job is skipped.
     *
     * @param \Simgroep\ConcurrentSpiderBundle\CrawlJob $crawlJob
     * @param string                                    $level
     */
Logs a message that will tell the job is skipped.
Logs a message that will tell the job is skipped .
public function markAsSkipped(CrawlJob $crawlJob, $level = 'info', $reason = 'unknown')
    {
        $meta = $crawlJob->getMetadata();
        $this->logMessage(
            $level,
            sprintf(
                "Skipped %s, reason: %s",
                $crawlJob->getUrl(),
                $reason
            ),
            $crawlJob->getUrl(),
            $meta['core'],
            $crawlJob->getQueueName()
        );
    }
public function markAsSkipped ( CrawlJob $ crawlJob , $ level = 'info' , $ reason = 'unknown' ) { $ meta = $ crawlJob -> getMetadata ( ) ; $ this -> logMessage ( $ level , sprintf ( " Skipped %s, reason: %s " , $ crawlJob -> getUrl ( ) , $ reason ) , $ crawlJob -> getUrl ( ) , $ meta [ 'core' ] , $ crawlJob -> getQueueName ( ) ) ; }
Logs a message that will tell the job is skipped.
Logs a message that will tell the job is skipped .