From 7d9f3ac473e85fa4de431896f46499c0e6a8c647 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 2 Jul 2025 19:35:01 +0200 Subject: [PATCH] Fix logs. --- app/Support/Search/OperatorQuerySearch.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/Support/Search/OperatorQuerySearch.php b/app/Support/Search/OperatorQuerySearch.php index 29604c81a5..f6378f0415 100644 --- a/app/Support/Search/OperatorQuerySearch.php +++ b/app/Support/Search/OperatorQuerySearch.php @@ -2030,8 +2030,7 @@ class OperatorQuerySearch implements SearchInterface // get accounts: $accounts = $this->accountRepository->searchAccount($value, $searchTypes, 1337); if (0 === $accounts->count() && false === $prohibited) { - Log::debug('Found zero accounts, search for non existing account, NO results will be returned.'); - Log::warning(sprintf('Call to findNothing() from %s.', $operator)); + Log::warning('Found zero accounts, search for non existing account, NO results will be returned.'); $this->collector->findNothing(); return; @@ -2047,8 +2046,7 @@ class OperatorQuerySearch implements SearchInterface ); if (0 === $filtered->count()) { - Log::debug('Left with zero accounts, so cannot find anything, NO results will be returned.'); - Log::warning(sprintf('Call to findNothing() from %s.', $operator)); + Log::warning('Left with zero accounts, so cannot find anything, NO results will be returned.'); $this->collector->findNothing(); return; @@ -2113,7 +2111,7 @@ class OperatorQuerySearch implements SearchInterface $accounts = $this->accountRepository->searchAccountNr($value, $searchTypes, 1337); if (0 === $accounts->count()) { Log::debug('Found zero accounts, search for invalid account.'); - Log::warning(sprintf('Call to findNothing() from %s.', $operator)); + Log::warning('Call to findNothing() from searchAccountNr().'); $this->collector->findNothing(); return; @@ -2140,7 +2138,7 @@ class OperatorQuerySearch implements SearchInterface if (0 === $filtered->count()) { Log::debug('Left with zero, search for invalid account'); - Log::warning(sprintf('Call to findNothing() from %s.', $operator)); + Log::warning('Call to findNothing() from searchAccountNr().'); $this->collector->findNothing(); return;