forked from GNUsocial/gnu-social
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();
|
$host = $this->cons[$this->defaultIdx]->getServer();
|
||||||
$message = unserialize($frame->body);
|
$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'];
|
$site = $message['site'];
|
||||||
$queue = $message['handler'];
|
$queue = $message['handler'];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user