line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Hexonet::Connector::Logger; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
18
|
use 5.026_000; |
|
1
|
|
|
|
|
4
|
|
4
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
5
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
6
|
1
|
|
|
1
|
|
627
|
use Data::Dumper; |
|
1
|
|
|
|
|
6981
|
|
|
1
|
|
|
|
|
67
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
7
|
use version 0.9917; our $VERSION = version->declare('v2.9.1'); |
|
1
|
|
|
|
|
22
|
|
|
1
|
|
|
|
|
10
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new { |
12
|
4
|
|
|
4
|
1
|
11
|
my ($class) = @_; |
13
|
4
|
|
|
|
|
22
|
return bless {}, $class; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub log { |
18
|
2
|
|
|
2
|
1
|
9
|
my ( $self, $post, $r, $error ) = @_; |
19
|
2
|
50
|
|
|
|
11
|
if ( defined $error ) { |
20
|
0
|
|
|
|
|
0
|
print {*STDERR} Dumper($post); |
|
0
|
|
|
|
|
0
|
|
21
|
0
|
|
|
|
|
0
|
print {*STDERR} 'HTTP communication failed: ' . $error; |
|
0
|
|
|
|
|
0
|
|
22
|
0
|
|
|
|
|
0
|
print {*STDERR} Dumper( $r->getCommandPlain() ); |
|
0
|
|
|
|
|
0
|
|
23
|
0
|
|
|
|
|
0
|
print {*STDERR} Dumper( $r->getPlain() ); |
|
0
|
|
|
|
|
0
|
|
24
|
|
|
|
|
|
|
} else { |
25
|
2
|
|
|
|
|
4
|
print {*STDOUT} Dumper($post); |
|
2
|
|
|
|
|
17
|
|
26
|
2
|
|
|
|
|
784
|
print {*STDOUT} Dumper( $r->getCommandPlain() ); |
|
2
|
|
|
|
|
22
|
|
27
|
2
|
|
|
|
|
123
|
print {*STDOUT} Dumper( $r->getPlain() ); |
|
2
|
|
|
|
|
24
|
|
28
|
|
|
|
|
|
|
} |
29
|
2
|
|
|
|
|
119
|
return $self->{data}; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |