From 4a7d6f2895d8eb0936faa3b7ac33faceee23bc94 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 4 May 2017 16:11:02 +0200 Subject: [PATCH] Less logging --- src/danog/MadelineProto/Exception.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/danog/MadelineProto/Exception.php b/src/danog/MadelineProto/Exception.php index 7565b455..737c09ae 100644 --- a/src/danog/MadelineProto/Exception.php +++ b/src/danog/MadelineProto/Exception.php @@ -26,10 +26,10 @@ class Exception extends \Exception if ($file !== null) { $this->file = $file; } - 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"])) { + 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", 'Chat forbidden'])) { return; } - if (strpos($message, 'Received request to switch to DC ') !== false) { + if (strpos($message, 'Received request to switch to DC ') !== false || strpos($message, 'Re-executing query...') !== false) { return; } \Rollbar\Rollbar::log(\Rollbar\Payload\Level::error(), $this, debug_backtrace(0));