Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
99fa751e
Commit
99fa751e
authored
9 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Test lib is available
parent
3c554797
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/core/modules/syslog/mod_syslog_sentry.php
+8
-5
8 additions, 5 deletions
htdocs/core/modules/syslog/mod_syslog_sentry.php
with
8 additions
and
5 deletions
htdocs/core/modules/syslog/mod_syslog_sentry.php
+
8
−
5
View file @
99fa751e
<?php
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-20
09
Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-20
15
Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2015 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -17,9 +17,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
require_once
DOL_DOCUMENT_ROOT
.
'/core/modules/syslog/logHandler.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/includes/raven/raven/lib/Raven/Autoloader.php'
;
Raven_Autoloader
::
register
();
require_once
DOL_DOCUMENT_ROOT
.
'/core/modules/syslog/logHandler.php'
;
if
(
file_exists
(
DOL_DOCUMENT_ROOT
.
'/includes/raven/raven/lib/Raven/Autoloader.php'
))
{
require_once
DOL_DOCUMENT_ROOT
.
'/includes/raven/raven/lib/Raven/Autoloader.php'
;
Raven_Autoloader
::
register
();
}
/**
* Class to manage logging to Sentry
...
...
@@ -71,7 +74,7 @@ class mod_syslog_sentry extends LogHandler implements LogHandlerInterface
*/
public
function
isActive
()
{
return
1
;
return
file_exists
(
DOL_DOCUMENT_ROOT
.
'/includes/raven/raven/lib/Raven/Autoloader.php'
)
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment