Fix some issues reported via Sentry.

This commit is contained in:
Buster Neece 2019-04-09 19:31:14 -05:00
parent 30f8852a00
commit 9f4d548953
No known key found for this signature in database
GPG key ID: 6D9E12FF03411F4E
2 changed files with 7 additions and 5 deletions

View file

@ -258,9 +258,9 @@ class StationMount implements StationMountInterface
/** /**
* @param null|string $relay_url * @param null|string $relay_url
*/ */
public function setRelayUrl($relay_url): void public function setRelayUrl(string $relay_url = null): void
{ {
$this->relay_url = $relay_url; $this->relay_url = $this->_truncateString($relay_url);
} }
/** /**
@ -276,7 +276,7 @@ class StationMount implements StationMountInterface
*/ */
public function setAuthhash(string $authhash = null): void public function setAuthhash(string $authhash = null): void
{ {
$this->authhash = $authhash; $this->authhash = $this->_truncateString($authhash);
} }
/** /**
@ -308,7 +308,7 @@ class StationMount implements StationMountInterface
*/ */
public function setAutodjFormat(string $autodj_format = null): void public function setAutodjFormat(string $autodj_format = null): void
{ {
$this->autodj_format = $autodj_format; $this->autodj_format = $this->_truncateString($autodj_format, 10);
} }
/** /**
@ -340,7 +340,7 @@ class StationMount implements StationMountInterface
*/ */
public function setCustomListenUrl(string $custom_listen_url = null): void public function setCustomListenUrl(string $custom_listen_url = null): void
{ {
$this->custom_listen_url = $custom_listen_url; $this->custom_listen_url = $this->_truncateString($custom_listen_url);
} }
/** /**

View file

@ -75,6 +75,8 @@ class Sentry
'error_types' => E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT, 'error_types' => E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT,
'excluded_exceptions' => [ 'excluded_exceptions' => [
\League\Flysystem\FileNotFoundException::class, \League\Flysystem\FileNotFoundException::class,
\fXmlRpc\Exception\FaultException::class,
\App\Exception\Supervisor::class,
], ],
]; ];