From 93f9b336b6a446ce4c53b35eff46aa28b77d657c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Sat, 12 Jul 2025 17:25:27 +0200 Subject: [PATCH] Shop.py: logging to sell --- brmbar3/brmbar/Shop.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/brmbar3/brmbar/Shop.py b/brmbar3/brmbar/Shop.py index dd762c1..2c878b2 100644 --- a/brmbar3/brmbar/Shop.py +++ b/brmbar3/brmbar/Shop.py @@ -1,6 +1,8 @@ import brmbar from .Currency import Currency from .Account import Account +import logging +logger = logging.getLogger(__name__) class Shop: """ BrmBar Shop @@ -26,6 +28,8 @@ class Shop: def sell(self, item, user, amount = 1): # Call the stored procedure for the sale + logger.debug("sell: item.id=%s amount=%s user.id=%s self.currency.id=%s", + item.id, amount, user.id, self.currency.id) cost = self.db.execute_and_fetch( "SELECT public.sell_item(%s, %s, %s, %s, %s)", [item.id, amount, user.id, self.currency.id,