From: Cory G Watson Date: Tue, 27 Jun 2006 20:37:25 +0000 (+0000) Subject: Fix BEGIN WORK/COMMIT/ROLLBACK debug statements lost with profiling change X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d20754315045a6dfdfd8928c1f63c0a49e1a0d0d;p=dbsrgits%2FDBIx-Class-Historic.git Fix BEGIN WORK/COMMIT/ROLLBACK debug statements lost with profiling change --- diff --git a/lib/DBIx/Class/Storage/Statistics.pm b/lib/DBIx/Class/Storage/Statistics.pm index ec9edda..90f6619 100644 --- a/lib/DBIx/Class/Storage/Statistics.pm +++ b/lib/DBIx/Class/Storage/Statistics.pm @@ -49,6 +49,8 @@ Called when a transaction begins. =cut sub txn_begin { my $self = shift(); + + $self->debugfh->print("BEGIN WORK\n"); } =head2 txn_rollback @@ -58,6 +60,8 @@ Called when a transaction is rolled back. =cut sub txn_rollback { my $self = shift(); + + $self->debugfh->print("ROLLBACK\n"); } =head2 txn_commit @@ -67,6 +71,8 @@ Called when a transaction is committed. =cut sub txn_commit { my $self = shift(); + + $self->debugfh->print("COMMIT\n"); } =head2 query_start