This is an automated email from the ASF dual-hosted git repository.
beto pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new de96372ba7 chore: add log for ssh tunnel information (#24058)
de96372ba7 is described below
commit de96372ba7972a450c8eb68740e499db49f8cffe
Author: Hugh A. Miles II <[email protected]>
AuthorDate: Mon May 15 13:43:04 2023 -0400
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 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
)