line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catalyst::Plugin::ErrorCatcher::Plugin::CleanUp::TxnDo; |
2
|
|
|
|
|
|
|
$Catalyst::Plugin::ErrorCatcher::Plugin::CleanUp::TxnDo::VERSION = '0.0.8.18'; |
3
|
|
|
|
|
|
|
{ |
4
|
|
|
|
|
|
|
$Catalyst::Plugin::ErrorCatcher::Plugin::CleanUp::TxnDo::DIST = 'Catalyst-Plugin-ErrorCatcher'; |
5
|
|
|
|
|
|
|
} |
6
|
9
|
|
|
9
|
|
8705
|
use strict; |
|
9
|
|
|
|
|
25
|
|
|
9
|
|
|
|
|
404
|
|
7
|
9
|
|
|
9
|
|
54
|
use warnings; |
|
9
|
|
|
|
|
14
|
|
|
9
|
|
|
|
|
1126
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub tidy_message { |
10
|
28
|
|
|
28
|
1
|
50
|
my $plugin = shift; |
11
|
28
|
|
|
|
|
44
|
my $errstr_ref = shift; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# DBIx::Class::Schema::txn_do(): ... ... line XX |
14
|
28
|
|
|
|
|
41
|
${$errstr_ref} =~ s{ |
|
28
|
|
|
|
|
191
|
|
15
|
|
|
|
|
|
|
DBIx::Class::Schema::txn_do\(\): |
16
|
|
|
|
|
|
|
\s+ |
17
|
|
|
|
|
|
|
(.+?) |
18
|
|
|
|
|
|
|
\s+at\s+ |
19
|
|
|
|
|
|
|
\S+ |
20
|
|
|
|
|
|
|
\s+ |
21
|
|
|
|
|
|
|
line |
22
|
|
|
|
|
|
|
\s+ |
23
|
|
|
|
|
|
|
.* |
24
|
|
|
|
|
|
|
$ |
25
|
|
|
|
|
|
|
}{$1}xmsg; |
26
|
|
|
|
|
|
|
|
27
|
28
|
|
|
|
|
116
|
$errstr_ref; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
# ABSTRACT: cleanup txn_do messages from Pg |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=pod |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=encoding UTF-8 |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 NAME |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Catalyst::Plugin::ErrorCatcher::Plugin::CleanUp::TxnDo - cleanup txn_do messages from Pg |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 VERSION |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
version 0.0.8.18 |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head2 tidy_message($self, $stringref) |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Tidy up Postgres messages where the error is related to a I<DBIx::Class::Schema::txn_do>. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 AUTHOR |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Chisel <chisel@chizography.net> |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Chisel Wright. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
60
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=cut |