Browse Source

fix result output

main
ghost 12 months 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)
} }
} }
echo sprintf(
'index "%s" updated: %s %s' . PHP_EOL,
$config->manticore->index->document->name,
print_r(
$result,
true
),
print_r(
$data,
true
),
);
// Crawl documents // Crawl documents
$documents = []; $documents = [];
@ -359,6 +346,20 @@ foreach($search->get() as $document)
$document->getId() $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 // Create snap
if ($config->cli->document->crawl->snap->enabled && $code === 200) if ($config->cli->document->crawl->snap->enabled && $code === 200)
{ {

Loading…
Cancel
Save