mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Make noisy libraries less noisy
This commit is contained in:
parent
c39f440450
commit
bc230e988d
@ -25,7 +25,12 @@ def setup_logging():
|
||||
handler.setFormatter(formatter)
|
||||
logging.getLogger().addHandler(handler)
|
||||
logging.getLogger().setLevel(settings.LOG_LEVEL)
|
||||
logging.getLogger("passlib").setLevel("ERROR")
|
||||
|
||||
# Make noisy libraries less noisy
|
||||
if settings.LOG_LEVEL != "DEBUG":
|
||||
logging.getLogger("passlib").setLevel("ERROR")
|
||||
logging.getLogger("requests.packages.urllib3").setLevel("ERROR")
|
||||
logging.getLogger("snowflake.connector").setLevel("ERROR")
|
||||
|
||||
|
||||
def create_redis_connection():
|
||||
|
Loading…
Reference in New Issue
Block a user