[BUGFIX] Remove "[newlog()] " from DataHandler log info 60/54660/2
authorBenni Mack <benni@typo3.org>
Thu, 16 Nov 2017 11:10:55 +0000 (12:10 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 16 Nov 2017 12:36:19 +0000 (13:36 +0100)
DataHandlers' newlog() function is a shorthand method that
should act as a simple API, which it does, but it also adds
a "[newlog()] " info in front of the error message, which is
completely useless and only clutters DB and the log module.

Resolves: #83012
Releases: master, 8.7
Change-Id: I9e1ea083461de9cdf66fad1a30019e51130a0186
Reviewed-on: https://review.typo3.org/54660
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Classes/DataHandling/DataHandler.php

index 9044600..1372094 100644 (file)
@@ -8695,7 +8695,7 @@ class DataHandler implements LoggerAwareInterface
      */
     public function newlog($message, $error = 0)
     {
-        return $this->log('', 0, 0, 0, $error, '[newlog()] ' . $message, -1);
+        return $this->log('', 0, 0, 0, $error, $message, -1);
     }
 
     /**