[BUGFIX] Remove "[newlog()] " from DataHandler log info 61/54661/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:53:51 +0000 (13:53 +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/54661
Tested-by: TYPO3com <no-reply@typo3.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 764d10c..d18ff7f 100644 (file)
@@ -8758,7 +8758,7 @@ class DataHandler
      */
     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);
     }
 
     /**