From 86b20cbc51a4545c91e2a15ec615246521999e76 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 30 Nov 2023 02:36:25 +0200 Subject: [PATCH] add debug output on skip condition --- src/cli/document/crawl.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index 2c1c9f0..64674aa 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -311,7 +311,19 @@ foreach($search->get() as $document) } } - if ($skip) continue; + if ($skip) + { + echo sprintf( + 'skip "%s" by stripos condition "%s"' . PHP_EOL, + $url, + print_r( + $config->cli->document->crawl->skip->stripos->url, + true + ) + ); + + continue; + } // Save index $url = trim($url);