@@ -309,6 +309,7 @@ def _request_loan_status(
309309
310310 def checkin (self , patron : Patron , pin : str , licensepool : LicensePool ) -> None :
311311 """Return a loan early."""
312+ self .log .info (f"Checking in a loan in license pool { licensepool } " )
312313 _db = Session .object_session (patron )
313314
314315 loan = (
@@ -387,6 +388,7 @@ def checkout(
387388 delivery_mechanism : LicensePoolDeliveryMechanism ,
388389 ) -> LoanInfo :
389390 """Create a new loan."""
391+ self .log .info (f"Checking out a loan in license pool { licensepool } " )
390392 _db = Session .object_session (patron )
391393
392394 loan = (
@@ -612,13 +614,14 @@ def _unlimited_access_fulfill(
612614 raise FormatNotAvailable ()
613615 content_link = resource .representation .public_url
614616 content_type = resource .representation .media_type
615- return RedirectFulfillment (
616- content_link , content_type
617- ) # Tää pitää kattoo, ei ole circulation.py:ssä
617+ return RedirectFulfillment (content_link , content_type )
618618
619619 def _license_fulfill (
620620 self , loan : Loan , delivery_mechanism : LicensePoolDeliveryMechanism
621621 ) -> Fulfillment :
622+ self .log .info (
623+ f"Fulfilling loan of license { loan .license .identifier } in license pool { loan .license_pool } "
624+ )
622625 # We are unable to fulfill a loan that doesn't have its external identifier set,
623626 # since we use this to get to the checkout link. It shouldn't be possible to get
624627 # into this state.
@@ -722,6 +725,7 @@ def place_hold(
722725 notification_email_address : str | None ,
723726 ) -> HoldInfo :
724727 """Create a new hold."""
728+ self .log .info (f"Placing hold in license pool { licensepool } " )
725729 return self ._place_hold (patron , licensepool )
726730
727731 def _place_hold (self , patron : Patron , licensepool : LicensePool ) -> HoldInfo :
@@ -759,6 +763,7 @@ def _place_hold(self, patron: Patron, licensepool: LicensePool) -> HoldInfo:
759763
760764 def release_hold (self , patron : Patron , pin : str , licensepool : LicensePool ) -> None :
761765 """Cancel a hold."""
766+ self .log .info (f"Releasing hold in license pool { licensepool } " )
762767 _db = Session .object_session (patron )
763768
764769 hold = get_one (
0 commit comments