This commit is contained in:
zman 2025-04-08 10:32:34 -04:00
parent d028ecb842
commit 6b900ef16d

4
app.py
View File

@ -91,7 +91,7 @@ def print_address_label(pdf_path):
backend_identifier=backend, backend_identifier=backend,
blocking=True blocking=True
) )
print(status) app.logger.info(f"Printer status: {status}")
app.logger.info("Print job sent successfully") app.logger.info("Print job sent successfully")
except Exception as e: except Exception as e:
@ -144,4 +144,4 @@ def upload_file():
return jsonify({'message': f'File {file.filename} uploaded and queued for processing'}), 200 return jsonify({'message': f'File {file.filename} uploaded and queued for processing'}), 200
if __name__ == '__main__': if __name__ == '__main__':
app.run(debug=True) app.run()