From c52e35b9c85a0a6ed2bbf5d1b8ed779d3d2223e5 Mon Sep 17 00:00:00 2001 From: forest Date: Thu, 9 Dec 2021 11:32:00 -0600 Subject: [PATCH] warning -> warn --- capsulflask/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/capsulflask/__init__.py b/capsulflask/__init__.py index 007cf05..352027d 100644 --- a/capsulflask/__init__.py +++ b/capsulflask/__init__.py @@ -137,7 +137,7 @@ stripe.api_version = app.config['STRIPE_API_VERSION'] if app.config['MAIL_SERVER'] != "": app.config['FLASK_MAIL_INSTANCE'] = Mail(app) else: - app.logger.warning("No MAIL_SERVER configured. capsul will simply print emails to stdout.") + app.logger.warn("No MAIL_SERVER configured. capsul will simply print emails to stdout.") app.config['FLASK_MAIL_INSTANCE'] = StdoutMockFlaskMail() app.config['HTTP_CLIENT'] = MyHTTPClient(timeout_seconds=int(app.config['INTERNAL_HTTP_TIMEOUT_SECONDS'])) @@ -150,9 +150,9 @@ if app.config['BTCPAY_URL'] != "": app.config['BTCPAY_CLIENT'] = btcpay.Client(api_uri=app.config['BTCPAY_URL'], pem=app.config['BTCPAY_PRIVATE_KEY']) app.config['BTCPAY_ENABLED'] = True else: - app.logger.warning(f"Can't reach BTCPAY_URL {app.config['BTCPAY_URL']}: Response status code: {response.status_code}. Capsul will work fine except cryptocurrency payments will not work.") + app.logger.warn(f"Can't reach BTCPAY_URL {app.config['BTCPAY_URL']}: Response status code: {response.status_code}. Capsul will work fine except cryptocurrency payments will not work.") except: - app.logger.warning("unable to create btcpay client. Capsul will work fine except cryptocurrency payments will not work. The error was: " + my_exec_info_message(sys.exc_info())) + app.logger.warn("unable to create btcpay client. Capsul will work fine except cryptocurrency payments will not work. The error was: " + my_exec_info_message(sys.exc_info())) # only start the scheduler and attempt to migrate the database if we are running the app. # otherwise we are running a CLI command.