Add debug for travis

This commit is contained in:
Romain Neutron
2012-05-22 20:36:03 +02:00
parent f1f33fceae
commit 64c242c291

View File

@@ -174,7 +174,7 @@ class databox_field implements cache_cacheableInterface
$this->id = (int) $id;
echo "create tag from ".$row['src']." for id $id - name is ".$row['name']."\n";
echo "create tag from " . $row['src'] . " for id $id - name is " . $row['name'] . "\n";
$this->tag = self::loadClassFromTagName($row['src']);
$this->name = $row['name'];
@@ -241,6 +241,7 @@ class databox_field implements cache_cacheableInterface
*/
public static function get_instance(databox &$databox, $id)
{
echo "getting instance of databox_field $id for databox " . $databox->get_sbas_id() . "\n";
$cache_key = 'field_' . $id;
$instance_id = $databox->get_sbas_id() . '_' . $id;
if ( ! isset(self::$_instance[$instance_id]) || (self::$_instance[$instance_id] instanceof self) === false) {