From: Matt S Trout Date: Wed, 19 Jul 2006 22:39:12 +0000 (+0000) Subject: and once more, with feeling X-Git-Tag: v0.07002~75^2~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=68fcff2f6b1d98447ee2825830d6425100b53243;p=dbsrgits%2FDBIx-Class.git and once more, with feeling --- diff --git a/lib/DBIx/Class/Storage/Statistics.pm b/lib/DBIx/Class/Storage/Statistics.pm index d795490..0599ed6 100644 --- a/lib/DBIx/Class/Storage/Statistics.pm +++ b/lib/DBIx/Class/Storage/Statistics.pm @@ -82,16 +82,17 @@ executed and subsequent arguments are the parameters used for the query. =cut sub query_start { - my $self = shift(); - my $string = shift(); + my ($self, $string, @bind) = @_; + + my $message = "$string: ".join(', ', @bind)."\n"; if(defined($self->callback())) { $string =~ m/^(\w+)/; - $self->callback()->($1, $string, @_); + $self->callback()->($1, $message); return; } - $self->debugfh->print("$string: " . join(', ', @_) . "\n"); + $self->debugfh->print($message); } =head2 query_end