mirror of
https://github.com/apache/superset.git
synced 2026-04-26 19:44:58 +00:00
chore: add log for ssh tunnel information (#24058)
This commit is contained in:
@@ -404,7 +404,12 @@ class Database(
|
||||
)
|
||||
|
||||
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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user