From 0e06ff3c0ff60882b0ecaa739d8d1a33bbb21820 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 2 Dec 2023 21:18:57 +0200 Subject: [PATCH] fix debug message --- src/cli/document/crawl.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index 9c7cb20..d368366 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -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(