[open-ils-commits] r12449 - trunk/Open-ILS/src/perlmods/OpenILS/Utils (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Mar 6 15:41:54 EST 2009
Author: erickson
Date: 2009-03-06 15:41:50 -0500 (Fri, 06 Mar 2009)
New Revision: 12449
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm
Log:
change log level warning for non-ID retrieval
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm 2009-03-06 19:48:48 UTC (rev 12448)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm 2009-03-06 20:41:50 UTC (rev 12449)
@@ -141,6 +141,7 @@
sub die_event {
my $self = shift;
$self->rollback;
+ $self->died(1);
return $self->event;
}
@@ -153,6 +154,12 @@
$self->{event} = undef;
}
+sub died {
+ my($self, $died) = @_;
+ $self->{died} = $died if defined $died;
+ return $self->{died};
+}
+
sub authtoken {
my( $self, $auth ) = @_;
$self->{authtoken} = $auth if $auth;
@@ -614,7 +621,7 @@
$self->event(_mk_not_found($type, $arg));
return undef;
} elsif( ref($arg) =~ /Fieldmapper/ ) {
- $self->log(E,"$action $type called with an object.. attempting ID retrieval..");
+ $self->log(D,"$action $type called with an object.. attempting ID retrieval..");
$arg = $arg->id;
}
}
More information about the open-ils-commits
mailing list