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
f918ae7e
Commit
f918ae7e
authored
10 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Decrease log level for disabled trigger
parent
69eaefc4
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/class/interfaces.class.php
+5
-5
5 additions, 5 deletions
htdocs/core/class/interfaces.class.php
with
5 additions
and
5 deletions
htdocs/core/class/interfaces.class.php
+
5
−
5
View file @
f918ae7e
...
...
@@ -102,7 +102,7 @@ class Interfaces
if
(
in_array
(
$modName
,
$modules
))
{
$langs
->
load
(
"errors"
);
dol_syslog
(
get_class
(
$this
)
.
"::run_triggers action="
.
$action
.
" "
.
$langs
->
trans
(
"ErrorDuplicateTrigger"
,
$modName
,
"/htdocs/core/triggers/"
),
LOG_ERR
);
dol_syslog
(
get_class
(
$this
)
.
"::run_triggers action="
.
$action
.
" "
.
$langs
->
trans
(
"ErrorDuplicateTrigger"
,
$modName
,
"/htdocs/core/triggers/"
),
LOG_ERR
);
continue
;
}
else
...
...
@@ -123,7 +123,7 @@ class Interfaces
if
(
!
$qualified
)
{
dol_syslog
(
get_class
(
$this
)
.
"::run_triggers action="
.
$action
.
" Triggers for file '"
.
$file
.
"' need module to be enabled"
,
LOG_
INFO
);
dol_syslog
(
get_class
(
$this
)
.
"::run_triggers action="
.
$action
.
" Triggers for file '"
.
$file
.
"' need module to be enabled"
,
LOG_
DEBUG
);
continue
;
}
...
...
@@ -148,7 +148,7 @@ class Interfaces
$objMod
=
new
$modName
(
$this
->
db
);
if
(
$objMod
)
{
dol_syslog
(
get_class
(
$this
)
.
"::run_triggers action="
.
$action
.
" Launch triggers for file '"
.
$files
[
$key
]
.
"'"
,
LOG_INFO
);
dol_syslog
(
get_class
(
$this
)
.
"::run_triggers action="
.
$action
.
" Launch triggers for file '"
.
$files
[
$key
]
.
"'"
,
LOG_INFO
);
$result
=
$objMod
->
run_trigger
(
$action
,
$object
,
$user
,
$langs
,
$conf
);
if
(
$result
>
0
)
...
...
@@ -173,7 +173,7 @@ class Interfaces
}
else
{
dol_syslog
(
get_class
(
$this
)
.
"::run_triggers action="
.
$action
.
" Failed to instantiate trigger for file '"
.
$files
[
$key
]
.
"'"
,
LOG_ERR
);
dol_syslog
(
get_class
(
$this
)
.
"::run_triggers action="
.
$action
.
" Failed to instantiate trigger for file '"
.
$files
[
$key
]
.
"'"
,
LOG_ERR
);
}
}
...
...
@@ -270,7 +270,7 @@ class Interfaces
print
'Error: A trigger file was found but its class "'
.
$modName
.
'" was not found.'
.
"<br>
\n
"
;
continue
;
}
$objMod
=
new
$modName
(
$this
->
db
);
// Define disabledbyname and disabledbymodule
...
...
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