Bug 13411: (QA followup) Add logging
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 2 Mar 2015 14:06:58 +0000 (06:06 -0800)
committerLiz Rea <wizzyrea@gmail.com>
Fri, 11 Dec 2015 01:33:33 +0000 (14:33 +1300)
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit feafa273e443e56021959153e91bd999a68daf29)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit fc5804e6f1c175e40708b0a7604c4bf7ba5344bd)
Signed-off-by: Liz Rea <wizzyrea@gmail.com>

C4/SIP/ILS.pm

index 2ea451e..7d702b7 100644 (file)
@@ -195,9 +195,11 @@ sub checkin {
     # It's ok to check it in if it exists, and if it was checked out
     # or it was not checked out but the checked_in_ok flag was set
     $circ->ok( ( $checked_in_ok && $item ) || ( $item && $item->{patron} ) );
+    syslog("LOG_DEBUG", "C4::SIP::ILS::checkin - using checked_in_ok") if $checked_in_ok;
 
     if ( !defined( $item->{patron} ) ) {
         $circ->screen_msg("Item not checked out") unless $checked_in_ok;
+       syslog("LOG_DEBUG", "C4::SIP::ILS::checkin - item not checked out");
     }
     else {
         if ( $circ->ok ) {