capture some info if serialization fails on stomp frame
This commit is contained in:
parent
21c16b2e92
commit
3fd6b9d474
|
@ -480,6 +480,13 @@ class StompQueueManager extends QueueManager
|
|||
{
|
||||
$host = $this->cons[$this->defaultIdx]->getServer();
|
||||
$message = unserialize($frame->body);
|
||||
|
||||
if ($message === false) {
|
||||
$this->_log(LOG_ERR, "Can't unserialize frame: {$frame->body}");
|
||||
$this->stats('baditem', $queue);
|
||||
return false;
|
||||
}
|
||||
|
||||
$site = $message['site'];
|
||||
$queue = $message['handler'];
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user