line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Enbld::Message; |
2
|
|
|
|
|
|
|
|
3
|
7
|
|
|
7
|
|
594
|
use strict; |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
258
|
|
4
|
7
|
|
|
7
|
|
29
|
use warnings; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
1396
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERBOSE; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub notify { |
9
|
216
|
|
|
216
|
0
|
3693
|
my ( $pkg, $msg ) = @_; |
10
|
|
|
|
|
|
|
|
11
|
216
|
|
|
|
|
584
|
chomp( $msg ); |
12
|
216
|
|
|
|
|
437
|
$msg .= "\n"; |
13
|
|
|
|
|
|
|
|
14
|
216
|
|
|
|
|
1896
|
require Enbld::Logger; |
15
|
216
|
100
|
|
|
|
1127
|
Enbld::Logger->write( $msg ) if Enbld::Logger->logfile; |
16
|
|
|
|
|
|
|
|
17
|
216
|
100
|
|
|
|
1091
|
print $msg if $VERBOSE; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub alert { |
21
|
0
|
|
|
0
|
0
|
0
|
my ( $pkg, $msg ) = @_; |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
0
|
chomp( $msg ); |
24
|
0
|
|
|
|
|
0
|
$msg .= "\n"; |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
0
|
require Enbld::Logger; |
27
|
0
|
0
|
|
|
|
0
|
Enbld::Logger->write( $msg ) if Enbld::Logger->logfile; |
28
|
|
|
|
|
|
|
|
29
|
0
|
0
|
|
|
|
0
|
print STDERR $msg if $VERBOSE; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub set_verbose { |
33
|
1
|
|
|
1
|
0
|
580
|
$VERBOSE++; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|