1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 10:19:00 +01:00

More logs

This commit is contained in:
Daniil Gentili 2023-05-26 16:33:35 +02:00
parent 5bff0f8c98
commit 94706cb0a8
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -109,6 +109,7 @@ trait UpdateHandler
$update = $update['progress'];
}
if ($f = $this->event_handler_instance->waitForStartInternal()) {
$this->logger->logger("Postponing update handling, onStart is still running (if stuck here for too long, make sure to fork long-running tasks in onStart using EventLoop::queue to fix this)...", Logger::NOTICE);
$this->updates[$this->updates_key++] = $update;
$f->map(function (): void {
\array_map($this->handleUpdate(...), $this->updates);
@ -471,6 +472,7 @@ trait UpdateHandler
*/
public function saveUpdate(array $update): void
{
$this->logger->logger("Saving update of type {$update['_']}", Logger::VERBOSE);
if ($update['_'] === 'updateConfig') {
$this->config['expires'] = 0;
$this->getConfig();