]> git.mxchange.org Git - core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 6 Feb 2022 18:42:48 +0000 (19:42 +0100)
committerRoland Häder <roland@mxchange.org>
Sun, 6 Feb 2022 18:42:48 +0000 (19:42 +0100)
- let's not mess up logfiles with \n characters

Signed-off-by: Roland Häder <roland@mxchange.org>
framework/main/classes/file_directories/output/raw/class_FrameworkRawFileOutputPointer.php

index bff94f4fef25c2256e487f4338c65aad91fdbe8e..a3c5b0a48ca57c1250eb5262322a246c71c3748f 100644 (file)
@@ -98,7 +98,7 @@ class FrameworkRawFileOutputPointer extends BaseFileIo implements OutputPointer
         */
        public function writeToFile (string $dataStream) {
                // Validate parameter and class own attributes
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('RAW-FILE-OUTPUT-POINTER: dataStream(%d)=%s - CALLED!', strlen($dataStream), $dataStream));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('RAW-FILE-OUTPUT-POINTER: dataStream(%d)=%s (trimmed) - CALLED!', strlen($dataStream), trim($dataStream)));
                if (empty($dataStream)) {
                        // Empty data stream
                        throw new InvalidArgumentException('Parameter "dataStream" is empty');