/[cvs]/nfo/perl/libs/Data/Storage/Handler/Abstract.pm
ViewVC logotype

Diff of /nfo/perl/libs/Data/Storage/Handler/Abstract.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by joko, Fri Apr 18 16:07:53 2003 UTC revision 1.18 by joko, Fri Jun 6 03:40:57 2003 UTC
# Line 2  Line 2 
2  ##    $Id$  ##    $Id$
3  ##    ------------------------------------------------------------------------  ##    ------------------------------------------------------------------------
4  ##    $Log$  ##    $Log$
5    ##    Revision 1.18  2003/06/06 03:40:57  joko
6    ##    disabled autovivifying of arguments as attributes
7    ##
8    ##    Revision 1.17  2003/05/13 07:58:49  joko
9    ##    fix: die if methodname is empty
10    ##    fixes to log-string
11    ##
12  ##    Revision 1.16  2003/04/18 16:07:53  joko  ##    Revision 1.16  2003/04/18 16:07:53  joko
13  ##    just use logger if instantiation successed  ##    just use logger if instantiation successed
14  ##  ##
# Line 240  sub AUTOLOAD { Line 247  sub AUTOLOAD {
247    }    }
248  #=cut  #=cut
249    
250    =pod
251      if (!$methodname) {
252        die("Methodname is not defined!");
253        return;
254      }
255    =cut
256    
257  #print "$methodname - 3", "\n";  #print "$methodname - 3", "\n";
258    
259    # try to dispatch method-call to Storage::Handler::*    # try to dispatch method-call to Storage::Handler::*
# Line 268  sub AUTOLOAD { Line 282  sub AUTOLOAD {
282      #$lock_AUTOLOAD = 1 if ($methodname eq 'insert');      #$lock_AUTOLOAD = 1 if ($methodname eq 'insert');
283      if (!$self->{lock_info}->{log_lock}) {      if (!$self->{lock_info}->{log_lock}) {
284        #print "method: $methodname", "\n";        #print "method: $methodname", "\n";
285        $logger->debug( __PACKAGE__ . "[$self->{metainfo}->{type}]" . "->" . $methodname . "(@_)" );        my $type = $self->{metainfo}->{type};
286          $type ||= '';
287          # FIXME!
288          #$logger->debug( __PACKAGE__ . "[$type]" . "->" . $methodname . "(@_)" );
289          $logger->debug( __PACKAGE__ . "[$type]" . "->" . $methodname );
290      } else {      } else {
291        # AUTOLOAD - sub is locked to prevent deep recursions if (e.g.) db-inserts cause log-actions to same db itself        # AUTOLOAD - sub is locked to prevent deep recursions if (e.g.) db-inserts cause log-actions to same db itself
292      }      }

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.18

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed