| 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 |
## |
## |
| 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::* |
| 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 |
} |
} |