Skip to content

Commit cc0fa80

Browse files
ENGCOM-6289: Log InvalidRequestException from FrontController validation failure to debug log #25600
2 parents fbd38a0 + 7c6d3f9 commit cc0fa80

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/internal/Magento/Framework/App/FrontController.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22
/**
3-
* Front controller responsible for dispatching application requests
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
75
*/
@@ -17,6 +15,8 @@
1715
use Magento\Framework\App\Request\Http as HttpRequest;
1816

1917
/**
18+
* Front controller responsible for dispatching application requests
19+
*
2020
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2121
*/
2222
class FrontController implements FrontControllerInterface
@@ -116,6 +116,8 @@ public function dispatch(RequestInterface $request)
116116
}
117117

118118
/**
119+
* Process (validate and dispatch) the incoming request
120+
*
119121
* @param HttpRequest $request
120122
* @param ActionInterface $actionInstance
121123
* @throws NotFoundException
@@ -141,7 +143,8 @@ private function processRequest(
141143
//Validation failed - processing validation results.
142144
$this->logger->debug(
143145
'Request validation failed for action "'
144-
.get_class($actionInstance) .'"'
146+
. get_class($actionInstance) . '"',
147+
["exception" => $exception]
145148
);
146149
$result = $exception->getReplaceResult();
147150
if ($messages = $exception->getMessages()) {

0 commit comments

Comments
 (0)