Add QR Code styling

This commit is contained in:
Nguyen Ngo
2025-08-18 11:56:13 -04:00
parent 8ae60bb48a
commit 4c4967a9e0
4 changed files with 2518 additions and 1498 deletions
+11
View File
@@ -472,6 +472,17 @@ class AppLogger:
'event': 'qr_code_accessed',
'data': event_data
}))
def log_qr_code_generated(self, data_length, fill_color, back_color, box_size, border, error_correction):
"""Log QR code generation with customization details"""
try:
self.logger.info(f"QR code generated with customization - "
f"Data length: {data_length}, "
f"Fill: {fill_color}, Background: {back_color}, "
f"Box size: {box_size}, Border: {border}, "
f"Error correction: {error_correction}")
except Exception as e:
self.logger.error(f"Failed to log QR code generation: {e}")
# DATABASE ERROR LOGGING METHODS