You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2024/12/16 07:18:00 UTC
(superset) 01/02: chore: set dev env logging level to INFO (from DEBUG)
This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch clean_docker_output
in repository https://gitbox.apache.org/repos/asf/superset.git
commit cd6cc3473561c5b9d6a3839415266c46f7d06a3f
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Sun Dec 15 22:55:41 2024 -0800
chore: set dev env logging level to INFO (from DEBUG)
Using a higher logging default in dev mode to clean up output. Also setting so TMI messages to debug to prevent not-so-useful information to show up on startup.
Devs can easily switch the logging level to DEBUG if/when needed.
---
docker/pythonpath_dev/superset_config.py | 1 +
superset/models/helpers.py | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/docker/pythonpath_dev/superset_config.py b/docker/pythonpath_dev/superset_config.py
index e8223e5358..3243897587 100644
--- a/docker/pythonpath_dev/superset_config.py
+++ b/docker/pythonpath_dev/superset_config.py
@@ -103,6 +103,7 @@ WEBDRIVER_BASEURL = "http://superset:8088/" # When using docker compose baseurl
# The base URL for the email report hyperlinks.
WEBDRIVER_BASEURL_USER_FRIENDLY = WEBDRIVER_BASEURL
SQLLAB_CTAS_NO_LIMIT = True
+LOG_LEVEL = logging.INFO
#
# Optionally import superset_config_docker.py (which will have been included on
diff --git a/superset/models/helpers.py b/superset/models/helpers.py
index feb05a401e..868c187002 100644
--- a/superset/models/helpers.py
+++ b/superset/models/helpers.py
@@ -329,13 +329,13 @@ class ImportExportMixin:
is_new_obj = True
# Create new DB object
obj = cls(**dict_rep)
- logger.info("Importing new %s %s", obj.__tablename__, str(obj))
+ logger.debug("Importing new %s %s", obj.__tablename__, str(obj))
if cls.export_parent and parent:
setattr(obj, cls.export_parent, parent)
db.session.add(obj)
else:
is_new_obj = False
- logger.info("Updating %s %s", obj.__tablename__, str(obj))
+ logger.debug("Updating %s %s", obj.__tablename__, str(obj))
# Update columns
for k, v in dict_rep.items():
setattr(obj, k, v)