Debugging continued:
[core.git] / inc / main / classes / output / debug / console / class_DebugConsoleOutput.php
index 20c36dc8677823ba08d7ea2043a9fac642e67c9d..8c0a749ae3839c723f818a7311b419f6aa5781a3 100644 (file)
@@ -6,6 +6,7 @@ namespace CoreFramework\Debug\Output;
 use CoreFramework\Debug\Debugger;
 use CoreFramework\Output\Debug\BaseDebugOutput;
 use CoreFramework\Registry\Registerable;
+use CoreFramework\Stream\Output\OutputStreamer;
 
 /**
  * A debug output class for the console (e.g. hub software)
@@ -102,7 +103,7 @@ class DebugConsoleOutput extends BaseDebugOutput implements Debugger, OutputStre
         * @throws      UnsupportedOperationException   If this method is called
         */
        public function streamData ($data) {
-               self::createDebugInstance(__CLASS__)->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.');
+               self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.');
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
@@ -125,7 +126,7 @@ class DebugConsoleOutput extends BaseDebugOutput implements Debugger, OutputStre
         * @throws      UnsupportedOperationException   If this method is called
         */
        public function seek ($offset, $whence = SEEK_SET) {
-               self::createDebugInstance(__CLASS__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . '] offset=' . $offset . ',whence=' . $whence);
+               self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . '] offset=' . $offset . ',whence=' . $whence);
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }