mirror of
https://github.com/YGGverse/Yo.git
synced 2025-01-28 15:34:26 +00:00
fix debug message
This commit is contained in:
parent
e066223bd2
commit
0e06ff3c0f
@ -125,12 +125,15 @@ foreach($search->get() as $document)
|
||||
];
|
||||
|
||||
// Debug target
|
||||
echo sprintf(
|
||||
_('[%s] index "%s" in "%s"') . PHP_EOL,
|
||||
date('c'),
|
||||
$document->get('url'),
|
||||
$config->manticore->index->document->name
|
||||
);
|
||||
if ($config->cli->document->crawl->debug->level->notice)
|
||||
{
|
||||
echo sprintf(
|
||||
_('[%s] [notice] index "%s" in "%s"') . PHP_EOL,
|
||||
date('c'),
|
||||
$document->get('url'),
|
||||
$config->manticore->index->document->name
|
||||
);
|
||||
}
|
||||
|
||||
// Update index time anyway and set reset code to 404
|
||||
$index->updateDocument(
|
||||
|
Loading…
x
Reference in New Issue
Block a user