mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
debug(mqtt): temporary onSubscribe diagnostics [revert]
This commit is contained in:
1 parent
8d5e92e288
commit
fd05c1224f
1 file changed
+8
@@ -166,6 +166,14 @@ class Handler implements MqttHandler
|
||||
$grantedTopics[$filter->topic] = [$document, $grantedQos];
|
||||
}
|
||||
|
||||
\Utopia\CLI\Console::error('MQTT_SUB_DBG prefix=' . $connection->prefix
|
||||
. ' uid=' . ($identity['userId'] ?? '(none)')
|
||||
. ' roles=' . \json_encode($roles)
|
||||
. ' filters=' . \json_encode(\array_map(fn ($f) => [$f->topic, $f->qos], $subscribe->filters()))
|
||||
. ' allowed=' . \json_encode(\array_keys($allowed))
|
||||
. ' foundTopics=' . \json_encode(\array_keys($topicsById))
|
||||
. ' codes=' . \json_encode($suback->codes()));
|
||||
|
||||
if ($grantedTopics !== []) {
|
||||
$this->replayBacklog($connection, $projectDB, $grantedTopics);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user