Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 6 Feb 2022 18:32:08 +0000 (19:32 +0100)
committerRoland Häder <roland@mxchange.org>
Sun, 6 Feb 2022 18:32:08 +0000 (19:32 +0100)
- (maybe) fixed warning "bad file descriptor", it was flooding logfiles

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

index 5432d96c7a2bc994ff257609c2ac033be0e5a1c2..9f488491885c42b2a4a9bd262b171c5be82c47dd 100644 (file)
@@ -79,7 +79,7 @@ class FrameworkRawFileOutputPointer extends BaseFileIo implements OutputPointer
                $pointerInstance = new FrameworkRawFileOutputPointer();
 
                // Set file pointer and file name
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('RAW-FILE-OUTPUT-POINTER: pointerInstance=%s,fileObject=%s', $pointerInstance->__toString(), $fileObject->__toString()));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('RAW-FILE-OUTPUT-POINTER: pointerInstance=%s,fileObjectp=%s', $pointerInstance->__toString(), $fileObject));
                $pointerInstance->setFileObject($fileObject);
 
                // Return the instance
@@ -98,6 +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));
                if (empty($dataStream)) {
                        // Empty data stream
                        throw new InvalidArgumentException('Parameter "dataStream" is empty');