Skip to content
Snippets Groups Projects
Commit 9d6efde9 authored by Raphaël Doursenaud's avatar Raphaël Doursenaud
Browse files

Prevent sentry logging error with 3.9 update

Since we don't ship the required libraries anymore,
if the module had been enabled before upgrade,
the code was failing making Dolibarr totally unusable.

Mitigated the issue by disabling sentry logging
if the required libraries are unavailable.
parent 8bdda858
No related branches found
No related tags found
No related merge requests found
......@@ -145,6 +145,10 @@ class mod_syslog_sentry extends LogHandler implements LogHandlerInterface
*/
public function export($content)
{
if (! $this->isActive()) {
return;
}
global $conf;
$dsn = $conf->global->SYSLOG_SENTRY_DSN;
$client = new Raven_Client(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment