Less logging

This commit is contained in:
Daniil Gentili 2017-05-10 11:40:41 +01:00
parent 5af9aa93cf
commit 3d241f64b0
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +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", 'Chat forbidden'])) {
return;
}
if (strpos($message, 'Received request to switch to DC ') !== false || strpos($message, 'Re-executing query...') !== false || strpos($message, "Couldn't find peer by provided") !== false) {
if (strpos($message, 'fwrite') !== false || strpos($message, 'Received request to switch to DC ') !== false || strpos($message, 'Re-executing query...') !== false || strpos($message, "Couldn't find peer by provided") !== false) {
return;
}
\Rollbar\Rollbar::log(\Rollbar\Payload\Level::error(), $this, debug_backtrace(0));

View File

@ -61,7 +61,7 @@ class RPCErrorException extends \Exception
case -429: $message = 'Too many requests'; break;
}
parent::__construct($message, $code, $previous);
if (in_array($this->rpc, ['CHANNEL_PRIVATE', -404, -429, 'USERNAME_NOT_OCCUPIED'])) {
if (in_array($this->rpc, ['CHANNEL_PRIVATE', -404, -429, 'USERNAME_NOT_OCCUPIED', 'ACCESS_TOKEN_INVALID', 'AUTH_KEY_UNREGISTEREDÃ'])) {
return;
}
if (strpos($this->rpc, 'FLOOD_WAIT_') !== false) {