added some logging on object create
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Nov 2006 17:33:43 +0000 (17:33 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Nov 2006 17:33:43 +0000 (17:33 +0000)
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

index 9e11b20..c3dbd67 100644 (file)
@@ -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;