]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/producer/cruncher/keys/class_CruncherKeyProducer.php
Rewrote debug lines (even more), re-enabled debugging lines in socket layer
[hub.git] / application / hub / main / producer / cruncher / keys / class_CruncherKeyProducer.php
index 37f6102f491011046076c5ab12af1a95664d95cd..9242d0f0b557c4d7a68c02fb6188e6690f1508e8 100644 (file)
@@ -75,11 +75,11 @@ class CruncherKeyProducer extends BaseKeyProducer implements KeyProducer, Regist
                // Is this cruncher virgin?
                if (!$stateInstance->isCruncherStateVirgin()) {
                        // This cruncher is not virgin, so skip it
-                       $this->debugOutput('PRODUCER: The cruncher is not virgin. stateInstance=' . $stateInstance->__toString() . '');
+                       self::createDebugInstance(__CLASS__)->debugOutput('PRODUCER: The cruncher is not virgin. stateInstance=' . $stateInstance->__toString() . '');
                        return;
                } elseif (!$this->getIteratorInstance()->valid()) {
                        // This producer's iterator has finished its assignment
-                       $this->debugOutput('PRODUCER: Finished creating keys. iteratorinstance=' . $this->getIteratorInstance()->__toString() . '');
+                       self::createDebugInstance(__CLASS__)->debugOutput('PRODUCER: Finished creating keys. iteratorinstance=' . $this->getIteratorInstance()->__toString() . '');
                        return;
                }
 
@@ -104,7 +104,7 @@ class CruncherKeyProducer extends BaseKeyProducer implements KeyProducer, Regist
                // Is the per-work unit limit reached?
                if ($this->isOutgoingQueueLimitReached('cruncher_per_unit_key_limit')) {
                        // @TODO Do something with it
-                       $this->debugOutput('currentKey(b64)="' . base64_encode($currentKey) . '" needs to be processed.');
+                       self::createDebugInstance(__CLASS__)->debugOutput('currentKey(b64)="' . base64_encode($currentKey) . '" needs to be processed.');
 
                        // At last re-init the stack
                        $this->initOutgoingQueue();