From 72ed146b34d1e93724db05c7b04038eaed539ed4 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 16 Nov 2006 17:33:43 +0000 Subject: [PATCH] added some logging on object create git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@6596 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm b/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm index 9e11b20a22..c3dbd6767d 100644 --- a/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm @@ -540,7 +540,11 @@ sub runmethod { $self->event(_mk_not_found($type, $arg)) unless @$obj; } - $arg->id($obj->id) if $action eq 'create'; # grabs the id on create + if( $action eq 'create' ) { + $self->log(I, "created a new $type object with ID " . $obj->id); + $arg->id($obj->id); + } + $self->data($obj); # cache the data for convenience return ($obj) ? $obj : 1; -- 2.11.0