From 96ac98ea36ab6d0560f34cd79af752239c429eff Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 6 Mar 2009 20:41:50 +0000 Subject: [PATCH] change log level warning for non-ID retrieval git-svn-id: svn://svn.open-ils.org/ILS/trunk@12449 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm b/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm index 68332bfaee..4294bcbb58 100644 --- a/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm @@ -141,6 +141,7 @@ sub event { sub die_event { my $self = shift; $self->rollback; + $self->died(1); return $self->event; } @@ -153,6 +154,12 @@ sub clear_event { $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 @@ sub runmethod { $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; } } -- 2.11.0