|
@@ -72,7 +72,8 @@ class IQueueDB
|
|
|
try {
|
|
|
return $this->_redis->rPush($this->_queue_name, $value);
|
|
|
} catch(Exception $e) {
|
|
|
- throw_exception($e->getMessage());
|
|
|
+ Log::record("IQueueDB::rpush " . $e->getMessage(),Log::ERR);
|
|
|
+ return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -81,7 +82,8 @@ class IQueueDB
|
|
|
try {
|
|
|
return $this->_redis->lPush($this->_queue_name,$value);
|
|
|
} catch(Exception $e) {
|
|
|
- throw_exception($e->getMessage());
|
|
|
+ Log::record("IQueueDB::lpush " . $e->getMessage(),Log::ERR);
|
|
|
+ return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -233,6 +235,10 @@ abstract class ILooper
|
|
|
$content = $this->mServer->pop($queues,1);
|
|
|
if(empty($content)) continue;
|
|
|
|
|
|
+ $msg = json_encode($content);
|
|
|
+ Log::record("messge:{$msg}",Log::DEBUG);
|
|
|
+
|
|
|
+
|
|
|
if($this->_stop)
|
|
|
{
|
|
|
foreach ($content as $key => $params) {
|