From d3f8d1c0e33cbaa6af640bc13542210cfd81440b Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 30 Nov 2023 02:59:07 +0200 Subject: [PATCH] fix result output --- src/cli/document/crawl.php | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index 64674aa..0a7a1de 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -226,19 +226,6 @@ foreach($search->get() as $document) } } - echo sprintf( - 'index "%s" updated: %s %s' . PHP_EOL, - $config->manticore->index->document->name, - print_r( - $result, - true - ), - print_r( - $data, - true - ), - ); - // Crawl documents $documents = []; @@ -359,6 +346,20 @@ foreach($search->get() as $document) $document->getId() ); + // Debug result + echo sprintf( + 'index "%s" updated: %s %s' . PHP_EOL, + $config->manticore->index->document->name, + print_r( + $result, + true + ), + print_r( + $data, + true + ), + ); + // Create snap if ($config->cli->document->crawl->snap->enabled && $code === 200) {