MIFARE: better logging, thanks to [TRS] I think
[zanchey/dispense2.git] / sql-edition / servers / VendingMachine.py
index b7d747a..e96832a 100644 (file)
@@ -190,7 +190,7 @@ class VendingMachine:
                                        self.mifare_timeout = now + 0.5
                                        mifare_uid = self.mifare.get_card_id()
                                        if mifare_uid != None:
-                                               logging.info('Got MIFARE card id %s'%(str(mifare_uid)))
+                                               logging.info('Got MIFARE card id %s'%(repr(mifare_uid)))
                                                self.events.append((MIFARE, mifare_uid))
                                                timeout = 0
                        if timeout == 0:

UCC git Repository :: git.ucc.asn.au