Browse Source

fix result output

main
ghost 1 year ago
parent
commit
d3f8d1c0e3
  1. 27
      src/cli/document/crawl.php

27
src/cli/document/crawl.php

@ -226,19 +226,6 @@ foreach($search->get() as $document) @@ -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) @@ -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)
{

Loading…
Cancel
Save