From 0181eaa2ca8be042c52d7de29f8eb468ae898267 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 27 Apr 2017 12:02:50 +0200 Subject: [PATCH] reduce logging --- src/danog/MadelineProto/Exception.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/danog/MadelineProto/Exception.php b/src/danog/MadelineProto/Exception.php index 6da0aefe..089cb753 100644 --- a/src/danog/MadelineProto/Exception.php +++ b/src/danog/MadelineProto/Exception.php @@ -29,6 +29,7 @@ class Exception extends \Exception if (in_array($message, ['Re-executing query...', 'I had to recreate the temporary authorization key', 'This peer is not present in the internal peer database', "Couldn't get response"])) { return; } + if (strpos($message, 'Received request to switch to DC ') !== false) return; \Rollbar\Rollbar::log($this, debug_backtrace(), 'error'); }