Skip to content

Commit 6e6d4e3

Browse files
authored
test: suppress unnecessary fab and sqla logs (#20870)
1 parent e1094e2 commit 6e6d4e3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/integration_tests/superset_test_config.py

+7
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717
# type: ignore
18+
import logging
1819
import math
1920
from copy import copy
2021
from datetime import timedelta
@@ -24,6 +25,12 @@
2425
CustomPrestoTemplateProcessor,
2526
)
2627

28+
logging.getLogger("flask_appbuilder.baseviews").setLevel(logging.WARNING)
29+
logging.getLogger("flask_appbuilder.base").setLevel(logging.WARNING)
30+
logging.getLogger("flask_appbuilder.api").setLevel(logging.WARNING)
31+
logging.getLogger("flask_appbuilder.security.sqla.manager").setLevel(logging.WARNING)
32+
logging.getLogger("sqlalchemy.engine.Engine").setLevel(logging.WARNING)
33+
2734
AUTH_USER_REGISTRATION_ROLE = "alpha"
2835
SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(
2936
DATA_DIR, "unittests.integration_tests.db"

0 commit comments

Comments
 (0)