1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 12:35:16 +01:00

Less logging

This commit is contained in:
Daniil Gentili 2017-05-04 16:11:02 +02:00 committed by GitHub
parent 9650a77b89
commit 4a7d6f2895

View File

@ -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));