From aac92b2e001aaae22f782e7b12be2154d662de32 Mon Sep 17 00:00:00 2001 From: Wilco Louwerse Date: Fri, 20 Sep 2024 15:04:39 +0200 Subject: [PATCH 1/2] Change 2 logs from warning to info --- src/Service/CacheService.php | 2 +- src/Service/EndpointService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/CacheService.php b/src/Service/CacheService.php index 899c556e..88c56e3e 100644 --- a/src/Service/CacheService.php +++ b/src/Service/CacheService.php @@ -157,7 +157,7 @@ private function setObjectClient(): void $organization = $application->getOrganization(); } } catch (Exception $e) { - $this->logger->warning('Cannot determine tennant from application: '.$e->getMessage()); + $this->logger->info('Cannot determine tenant from application: '.$e->getMessage()); } if ($organization !== null && $organization->getDatabase() !== null) { diff --git a/src/Service/EndpointService.php b/src/Service/EndpointService.php index 30e871d3..e273a9f7 100644 --- a/src/Service/EndpointService.php +++ b/src/Service/EndpointService.php @@ -539,7 +539,7 @@ private function getNormalPath(array $parameters): array try { $combinedArray = array_combine($path, explode('/', $pathRaw)); } catch (ValueError $exception) { - $this->logger->error('EndpointService->getNormalPath(): '.$exception->getMessage()); + $this->logger->info('EndpointService->getNormalPath(): '.$exception->getMessage()); // Todo: When an id is not given the last element of the path array should be removed to ensure the arrays are of the same length. array_pop($path); From 24b21d9ae65019f036bebbea1cd07022b798f2b3 Mon Sep 17 00:00:00 2001 From: Wilco Louwerse Date: Fri, 20 Sep 2024 15:18:34 +0200 Subject: [PATCH 2/2] Info log to debug log --- src/Service/EndpointService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/EndpointService.php b/src/Service/EndpointService.php index e273a9f7..c75985bd 100644 --- a/src/Service/EndpointService.php +++ b/src/Service/EndpointService.php @@ -539,7 +539,7 @@ private function getNormalPath(array $parameters): array try { $combinedArray = array_combine($path, explode('/', $pathRaw)); } catch (ValueError $exception) { - $this->logger->info('EndpointService->getNormalPath(): '.$exception->getMessage()); + $this->logger->debug('EndpointService->getNormalPath(): '.$exception->getMessage()); // Todo: When an id is not given the last element of the path array should be removed to ensure the arrays are of the same length. array_pop($path);