From c4df3f3237a6e7870e7c4d434fcc2d401aa2eea8 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 23 Mar 2024 01:00:49 +0200 Subject: [PATCH] improve notice level debug --- src/cli/document/crawl.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index 5b20d0d..937679d 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -782,6 +782,17 @@ foreach($index->search('') } } } + + else + { + if ($config->cli->document->crawl->debug->level->notice) + { + echo sprintf( + _('[%s] [notice] local snap skipped by settings condition') . PHP_EOL, + date('c') + ); + } + } } // Copy to FTP storage on enabled @@ -837,6 +848,15 @@ foreach($index->search('') if (!$allowed) { + if ($config->cli->document->crawl->debug->level->notice) + { + echo sprintf( + _('[%s] [notice] remote snap skipped on "%s" by settings condition') . PHP_EOL, + date('c'), + $ftp->connection->host + ); + } + continue; }