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) { if ($file !== null) {
$this->file = $file; $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; 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; return;
} }
\Rollbar\Rollbar::log(\Rollbar\Payload\Level::error(), $this, debug_backtrace(0)); \Rollbar\Rollbar::log(\Rollbar\Payload\Level::error(), $this, debug_backtrace(0));