From 3d742ce43bc0e0f095c8514835c415686868c162 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 16 Nov 2006 17:33:02 +0000 Subject: [PATCH] added some useful logging git-svn-id: svn://svn.open-ils.org/ILS/trunk@6595 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