Skip to content

Commit

Permalink
Reduce Package Actions log level to DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioheleno committed Apr 11, 2022
1 parent 913e0ad commit 28b4dea
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Application/Action/Package/ListPackagesAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ protected function action(): ResponseInterface {
$packages = $this->packageRepository->findPopular();
$twig = Twig::fromRequest($this->request);

$this->logger->info('Packages list was viewed.');
$this->logger->debug('Packages list was viewed.');

// if (count($packages)) {
// $lastModifiedList = array_map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class RedirectListPackagesAction extends AbstractPackageAction {
protected function action(): ResponseInterface {
$routeParser = RouteContext::fromRequest($this->request)->getRouteParser();

$this->logger->info('Invalid route /packages is being redirected.');
$this->logger->debug('Invalid route /packages is being redirected.');

return $this->respondWithRedirect(
$routeParser->urlFor('listPackages')
Expand Down
4 changes: 2 additions & 2 deletions src/Application/Action/Package/RedirectPackageAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected function action(): ResponseInterface {

if (count($versionCol)) {
$release = $versionCol->last();
$this->logger->info(
$this->logger->debug(
sprintf(
'Package "%s" is being redirected to "%s"',
$package->getName(),
Expand Down Expand Up @@ -94,7 +94,7 @@ protected function action(): ResponseInterface {
);
}

$this->logger->info(
$this->logger->debug(
sprintf(
'Package "%s" is being redirected to "%s"',
$package->getName(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ protected function action(): ResponseInterface {

$routeParser = RouteContext::fromRequest($this->request)->getRouteParser();

$this->logger->info("Badge for package '${vendor}/${project}' is being redirected.");
$this->logger->debug("Badge for package '${vendor}/${project}' is being redirected.");

return $this->respondWithRedirect(
$routeParser->urlFor(
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Action/Package/ViewPackageAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function action(): ResponseInterface {
]
);

$this->logger->info("Package '${vendor}/${project}' was viewed.");
$this->logger->debug("Package '${vendor}/${project}' was viewed.");

// $lastModified = $package->getUpdatedAt() ?? $package->getCreatedAt();
// $this->response = $this->cacheProvider->withLastModified(
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Action/Package/ViewPackageBadgeAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected function action(): ResponseInterface {
$version = $this->resolveStringArg('version');
$package = $this->packageRepository->get("${vendor}/${project}");

$this->logger->info("Status badge for package '${vendor}/${project}' was viewed.");
$this->logger->debug("Status badge for package '${vendor}/${project}' was viewed.");

$versionCol = $this->versionRepository->find(
[
Expand Down

0 comments on commit 28b4dea

Please sign in to comment.