summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-07-26 14:27:53 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-07-26 14:27:53 -0500
commit5f563d5ac7e6e1e93cca382baa42ee106f3db5a0 (patch)
treee9a436a4553b19573d4ee5ac66e201889561c330 /httemplate
parent0b08a87698a2278f3806a66dd6c93b24b18d4767 (diff)
RT#38217: Send email when logging conditions are met
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/edit/log_email.html4
-rw-r--r--httemplate/search/log.html21
2 files changed, 11 insertions, 14 deletions
diff --git a/httemplate/edit/log_email.html b/httemplate/edit/log_email.html
index 0c98046d3..4b7d09fb4 100644
--- a/httemplate/edit/log_email.html
+++ b/httemplate/edit/log_email.html
@@ -16,8 +16,8 @@
},
{ 'field' => 'min_level',
'type' => 'select',
- 'options' => [ 0..7 ],
- 'labels' => { map {$_ => $FS::Log::LEVELS[$_]} 0..7 },
+ 'options' => [ 0..4 ],
+ 'labels' => { map {$_ => $FS::Log::LEVELS[$_]} 0..4 },
'curr_value' => scalar($cgi->param('min_level')),
},
'to_addr',
diff --git a/httemplate/search/log.html b/httemplate/search/log.html
index 111200f55..cefa399a2 100644
--- a/httemplate/search/log.html
+++ b/httemplate/search/log.html
@@ -81,15 +81,15 @@ a:visited {text-decoration: none}
<TD>Level
<& /elements/select.html,
field => 'min_level',
- options => [ 0..7 ],
- labels => { map {$_ => $FS::Log::LEVELS[$_]} 0..7 },
+ options => [ 0..4 ],
+ labels => { map {$_ => $FS::Log::LEVELS[$_]} 0..4 },
curr_value => $cgi->param('min_level'),
&>
to
<& /elements/select.html,
field => 'max_level',
- options => [ 0..7 ],
- labels => { map {$_ => $FS::Log::LEVELS[$_]} 0..7 },
+ options => [ 0..4 ],
+ labels => { map {$_ => $FS::Log::LEVELS[$_]} 0..4 },
curr_value => $cgi->param('max_level'),
&>
</TD>
@@ -192,14 +192,11 @@ my $object_link_sub = sub {
};
my @colors = (
- '404040', #debug
- '0000aa', #info
- '00aa00', #notice
- 'aa0066', #warning
- '000000', #error
- 'aa0000', #critical
- 'ff0000', #alert
- 'ff0000', #emergency
+ '404040', #debug, gray
+ '000000', #info, black
+ '0000aa', #warning, blue
+ 'aa0066', #error, purple
+ 'ff0000', #critical, red
);
my $color_sub = sub { $colors[ $_[0]->level ]; };