From f5d70c0b88f7f8e8e09157ff733ea29c7bb66f96 Mon Sep 17 00:00:00 2001 From: forest Date: Tue, 14 Dec 2021 01:37:39 -0600 Subject: [PATCH] debugging validate dollars --- capsulflask/payment.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/capsulflask/payment.py b/capsulflask/payment.py index d5aab44..99be869 100644 --- a/capsulflask/payment.py +++ b/capsulflask/payment.py @@ -47,6 +47,7 @@ def validate_dollars(min: float, max: float): elif dollars and dollars >= maxAsDecimal: errors.append(f"dollars must be less than {str(maxAsDecimal)}") + current_app.logger.info(f"{len(errors)} {errors}") return [dollars, errors] @bp.route("/btcpay", methods=("GET", "POST")) @@ -60,6 +61,7 @@ def btcpay_payment(): if request.method == "POST": dollars, errors = validate_dollars(0.01, 1000) + current_app.logger.info(f"{len(errors)} {errors}") if len(errors) == 0: try: