include protocol
@@ -137,8 +137,9 @@ def run(
action_package_name, cors_origins=cors_origins, auto_reload=auto_reload
)
ssl_context = create_ssl_context(ssl_certificate, ssl_keyfile, ssl_password)
+ protocol = "https" if ssl_context else "http"
- logger.info(f"Action endpoint is up and running on port {port}.")
+ logger.info(f"Action endpoint is up and running on {protocol}://localhost:{port}.")
app.run("0.0.0.0", port, ssl=ssl_context, workers=utils.number_of_sanic_workers())
