From: Alexander Hartmaier Date: Thu, 20 Aug 2009 13:07:29 +0000 (+0000) Subject: pod patch for 'Tracing SQL' examples X-Git-Tag: v0.08111~65 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c92da5a9ea7b9d0288d45788083505cbf48c5f72;p=dbsrgits%2FDBIx-Class.git pod patch for 'Tracing SQL' examples --- diff --git a/lib/DBIx/Class/Manual/Troubleshooting.pod b/lib/DBIx/Class/Manual/Troubleshooting.pod index 2a19c50..e3b1ab3 100644 --- a/lib/DBIx/Class/Manual/Troubleshooting.pod +++ b/lib/DBIx/Class/Manual/Troubleshooting.pod @@ -17,11 +17,11 @@ SQL tracing, so to see what is happening try Alternatively use the C<< storage->debug >> class method:- - $class->storage->debug(1); + $schema->storage->debug(1); To send the output somewhere else set debugfh:- - $class->storage->debugfh(IO::File->new('/tmp/trace.out', 'w'); + $schema->storage->debugfh(IO::File->new('/tmp/trace.out', 'w'); Alternatively you can do this with the environment variable too:-