From 0eb9edf54914915f70419242f1bd26d31fd1c4bc Mon Sep 17 00:00:00 2001 From: Olov Danielson Date: Mon, 7 Dec 2009 13:40:57 +0000 Subject: [PATCH] iremoved echos --- ykval-synclib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ykval-synclib.php b/ykval-synclib.php index 7ac299c..e54d670 100644 --- a/ykval-synclib.php +++ b/ykval-synclib.php @@ -201,13 +201,13 @@ class SyncLib $urls=array(); # TODO: move statement to DB class, this looks grotesque $res=$this->db->customQuery("select * from queue WHERE queued_time < DATE_SUB(now(), INTERVAL " . $older_than . " MINUTE)"); - echo "found " . mysql_num_rows($res) . " old entries\n"; + $this->log('notice', "found " . mysql_num_rows($res) . " old queue entries"); $collection=array(); while($row = mysql_fetch_array($res, MYSQL_ASSOC)) { $collection[]=$row; } foreach ($collection as $row) { - echo "server=" . $row['server'] . " , info=" . $row['info'] . "\n"; + $this>log('notice', "server=" . $row['server'] . " , info=" . $row['info']); $urls[]=$row['server'] . "?otp=" . $row['otp'] .