env var
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / Statistics.pm
index ec9edda..60b59cd 100644 (file)
@@ -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<print> method is used). Initially
 should be set to STDERR - although see information on the
-L<DBIX_CLASS_STORAGE_DBI_DEBUG> environment variable.
+L<DBIC_TRACE> 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