[BUGFIX] Check for enabled devlog inside devLog() 07/53207/2
authorBenni Mack <benni@typo3.org>
Fri, 19 May 2017 12:24:24 +0000 (14:24 +0200)
committerBenni Mack <benni@typo3.org>
Wed, 14 Jun 2017 15:42:44 +0000 (17:42 +0200)
commitb2f6aa31a6d177ee41fcc2862ffbd746d3b2bf79
tree706f73e1f69c4920e55bc2dbc8aebfd91f75eec9
parentb1633c4bca4720e8d1afe2b99e8f928784c33f30
[BUGFIX] Check for enabled devlog inside devLog()

Calling GeneralUtility::devLog() can be called but
the method itself should check whether the devlog
is enabled, instead of having third-party code
rely on checking the option with an if statement.

This effectively removes the need for checks on
if (TYPO3_DLOG) and the other two constants TYPO3_ERROR_DLOG
and TYPO3_EXCEPTION_DLOG in all callers' code.

Resolves: #80289
Releases: master, 8.7
Change-Id: Ibaeeca6300bdb37a513a07fb46c2616cfc51c7f2
Reviewed-on: https://review.typo3.org/53207
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Template/DocumentTemplate.php
typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php
typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php
typo3/sysext/core/Classes/Error/ErrorHandler.php
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/frontend/Classes/Http/RequestHandler.php
typo3/sysext/saltedpasswords/Classes/SaltedPasswordService.php