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:05 UTC

[superset] branch testing-tunnel created (now 28736e1cca)

This is an automated email from the ASF dual-hosted git repository.

hugh pushed a change to branch testing-tunnel
in repository https://gitbox.apache.org/repos/asf/superset.git


      at 28736e1cca fix logs

This branch includes the following new commits:

     new bfc5766211 adding more logs
     new 28736e1cca fix logs

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[superset] 01/02: adding more logs

Posted by hu...@apache.org.
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 bfc5766211b2adfd538bb17bc230b9ae2b5b688d
Author: hughhhh <hu...@gmail.com>
AuthorDate: Wed Dec 7 18:13:28 2022 -0500

    adding more logs
---
 superset/models/core.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/superset/models/core.py b/superset/models/core.py
index 2826d4e3a7..0289ac70f3 100755
--- a/superset/models/core.py
+++ b/superset/models/core.py
@@ -379,6 +379,7 @@ class Database(
             DatabaseDAO,
         )
 
+        logger.info("Testing %", override_ssh_tunnel)
         if ssh_tunnel := override_ssh_tunnel or DatabaseDAO.get_ssh_tunnel(
             database_id=self.id
         ):


[superset] 02/02: fix logs

Posted by hu...@apache.org.
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)