From de96372ba7972a450c8eb68740e499db49f8cffe Mon Sep 17 00:00:00 2001 From: "Hugh A. Miles II" Date: Mon, 15 May 2023 13:43:04 -0400 Subject: [PATCH] chore: add log for ssh tunnel information (#24058) --- superset/models/core.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/superset/models/core.py b/superset/models/core.py index ec58170c1deb7..43d12900e613d 100755 --- a/superset/models/core.py +++ b/superset/models/core.py @@ -404,7 +404,12 @@ def get_sqla_engine_with_context( ) with engine_context as server_context: - if ssh_tunnel: + if ssh_tunnel and server_context: + logger.info( + "[SSH] Successfully create tunnel at %s: %s", + server_context.local_bind_address, + server_context.local_bind_port, + ) sqlalchemy_uri = ssh_manager_factory.instance.build_sqla_url( sqlalchemy_uri, server_context )