Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-rule-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-rule-engine
Commits
4fcaf921
Commit
4fcaf921
authored
Apr 03, 2023
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added logging
parent
f1a94910
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
intranet-rule-engine-procs.tcl
tcl/intranet-rule-engine-procs.tcl
+7
-2
No files found.
tcl/intranet-rule-engine-procs.tcl
View file @
4fcaf921
...
...
@@ -297,7 +297,11 @@ ad_proc im_rule_callback {
set error_p
[
catch
{
set fire_p
[
expr
$rule
_condition_tcl
]
}
error_msg
]
ns_log Notice
"im_rule_callback: fire_p=
$fire
_p, condition=
$rule
_condition_tcl"
ns_log Notice
"im_rule_callback: fire_p=
$fire
_p, condition=
$rule
_condition_tcl, error_p=
$error
_p, error_msg='
$error
_msg'"
ns_log Notice
"im_rule_callback: new=
[
array
get new
]
"
ns_log Notice
"im_rule_callback: old=
[
array
get old
]
"
ns_log Notice
"im_rule_callback: changed=
[
array
get changed
]
"
if
{
$error
_p
}
{
global errorInfo
...
...
@@ -469,15 +473,16 @@ ad_proc im_rule_callback_fire_email {
# Substitute the mail's body
if
{[
catch
{
set cmd
"set body
\"
$rule
_action_email_body
\"
"
ns_log Notice
"im_rule_callback_fire_email: cmd='
$cmd
'"
eval
$cmd
}
err_msg
]}
{
global errorInfo
ns_log Notice
"im_rule_callback_fire_email: Error in rule_action_email_body: object_id=
$object
_id, rule_id=
$rule
_id, message='
$err
_msg', info=
$error
Info, statement=
$rule
_action_email_body"
im_rule_callback_log -object_id
$object
_id -rule_id
$rule
_id -source
"action_email_body_error"
\
-message
"
$err
_msg -
$error
Info"
-statement
$rule
_action_email_body -env
$env
set email_error_p 1
continue
}
ns_log Notice
"im_rule_callback_fire_email: Sending email to
$email:
$subject
\n
$body
"
if
{
$debug
_p
}
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment