Bug #51239

AbstractViewHelper use incorrect method signature for "$this->systemLogger->log()"

Added by Timo Dödtmann almost 2 years ago. Updated over 1 year ago.

Status:Under Review Start date:2013-08-21
Priority:Must have Due date:
Assigned To:Adrian Föder % Done:

0%

Category:Core
Target version:-
Has patch:Yes Affected Flow version:Flow 2.0.0

Description

Within the `AbstractViewHelper::callRenderMethod()` a log entry will be created if en exception is thrown.
But the method signature of the systemLogger (\TYPO3\Flow\Log\LoggerInterface) looks slightly different to the method call.

TYPO3\Flow\Log\LoggerInterface

public function log($message, $severity = LOG_INFO, $additionalData = NULL, $packageKey = NULL, $className = NULL, $methodName = NULL);

vs.

TYPO3\Fluid\Core\ViewHelper\AbstractViewHelper

$this->systemLogger->log('An Exception was captured: '. $exception->getMessage() . '(' . $exception->getCode() . ')', LOG_ERR, 'TYPO3.Fluid', get_class($this));

The `$additionalData` is missing.

patch.patch Magnifier (813 Bytes) Timo Dödtmann, 2013-08-21 17:20

History

#1 Updated by Adrian Föder over 1 year ago

  • Status changed from New to Accepted
  • Assigned To set to Adrian Föder
  • Priority changed from Should have to Must have

#2 Updated by Gerrit Code Review over 1 year ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.Fluid has been pushed to the review server.
It is available at https://review.typo3.org/29377

#3 Updated by Gerrit Code Review over 1 year ago

Patch set 2 for branch master of project Packages/TYPO3.Fluid has been pushed to the review server.
It is available at https://review.typo3.org/29377

#4 Updated by Gerrit Code Review over 1 year ago

Patch set 3 for branch master of project Packages/TYPO3.Fluid has been pushed to the review server.
It is available at https://review.typo3.org/29377

Also available in: Atom PDF