Skip to content

Commit

Permalink
chore: allow logs to show error levels for ssh tunnel (#23536)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh authored Mar 30, 2023
1 parent ce3ba67 commit 81b32d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion superset/extensions/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# under the License.

import importlib
import logging
from io import StringIO
from typing import TYPE_CHECKING

Expand Down Expand Up @@ -53,8 +54,9 @@ def create_tunnel(
params = {
"ssh_address_or_host": (ssh_tunnel.server_address, ssh_tunnel.server_port),
"ssh_username": ssh_tunnel.username,
"remote_bind_address": (url.host, url.port), # bind_port, bind_host
"remote_bind_address": (url.host, url.port),
"local_bind_address": (self.local_bind_address,),
"debug_level": logging.getLogger("flask_appbuilder").level,
}

if ssh_tunnel.password:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/csv_upload_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,4 +513,4 @@ def test_import_parquet(mock_event_logger):

with test_db.get_sqla_engine_with_context() as engine:
data = engine.execute(f"SELECT * from {PARQUET_UPLOAD_TABLE}").fetchall()
assert data == [("john", 1), ("paul", 2), ("max", 3), ("bob", 4)]
assert data == [("max", 3), ("bob", 4), ("john", 1), ("paul", 2)]

0 comments on commit 81b32d1

Please sign in to comment.