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 2022/12/08 15:33:07 UTC
[superset] 02/02: fix logs
This is an automated email from the ASF dual-hosted git repository.
hugh pushed a commit to branch testing-tunnel
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 28736e1cca6b6360f6e098f161ca1a15ad86ea54
Author: hughhhh <hu...@gmail.com>
AuthorDate: Thu Dec 8 10:32:47 2022 -0500
fix logs
---
superset/models/core.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/superset/models/core.py b/superset/models/core.py
index 0289ac70f3..a9b13d67bf 100755
--- a/superset/models/core.py
+++ b/superset/models/core.py
@@ -379,12 +379,12 @@ class Database(
DatabaseDAO,
)
- logger.info("Testing %", override_ssh_tunnel)
+ logger.info("Testing %s", str(override_ssh_tunnel))
if ssh_tunnel := override_ssh_tunnel or DatabaseDAO.get_ssh_tunnel(
database_id=self.id
):
# if ssh_tunnel is available build engine with information
- logger.info("Creating ssh tunnel for db: %", self.id)
+ logger.info("Creating ssh tunnel for db: %i", int(self.id))
url = make_url_safe(self.sqlalchemy_uri_decrypted)
ssh_params = ssh_tunnel.parameters(bind_host=url.host, bind_port=url.port)
engine_context = sshtunnel.open_tunnel(**ssh_params)