You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2023/05/14 22:03:20 UTC
[superset] 01/01: add log for ssh tunnel information
This is an automated email from the ASF dual-hosted git repository.
hugh pushed a commit to branch hxgh-ssh-port-log
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 2ac2a98bda3022ca9a85df4d7c057facaac885d6
Author: hughhhh <hu...@gmail.com>
AuthorDate: Sun May 14 18:02:37 2023 -0400
add log for ssh tunnel information
---
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 ec58170c1d..43d12900e6 100755
--- a/superset/models/core.py
+++ b/superset/models/core.py
@@ -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
)