X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FStatistics.pm;h=60b59cd2bbd6c83a4a043c7c1f484404fc2312dd;hb=6fe735fad298585c8d6982d496bcbb7b75400a6b;hp=ec9edda89bb544b4c828ec462abcea1c95dc1194;hpb=4c24816137de09c629fcd3da41b7626d50cc13f6;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/Statistics.pm b/lib/DBIx/Class/Storage/Statistics.pm index ec9edda..60b59cd 100644 --- a/lib/DBIx/Class/Storage/Statistics.pm +++ b/lib/DBIx/Class/Storage/Statistics.pm @@ -40,7 +40,7 @@ sub new { Sets or retrieves the filehandle used for trace/debug output. This should be an IO::Handle compatible object (only the C method is used). Initially should be set to STDERR - although see information on the -L environment variable. +L environment variable. =head2 txn_begin @@ -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