From 7979df3282f6f0d266d6ebb13971d2024e25762f Mon Sep 17 00:00:00 2001 From: Paul Lam Date: Fri, 13 Oct 2023 14:23:02 +0900 Subject: [PATCH] set logging level INFO if not on prod --- mind_palace/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mind_palace/app.py b/mind_palace/app.py index 2db9e49..3a224ff 100644 --- a/mind_palace/app.py +++ b/mind_palace/app.py @@ -1,3 +1,5 @@ +import logging + import extract import index import openai @@ -15,6 +17,9 @@ def is_production_env(): return "app_env" in st.secrets.keys() and st.secrets.app_env == "production" +if not is_production_env(): + logging.basicConfig(level=logging.INFO) + itune = Tune( strategy=MultiArmedBandit(), only_choose_winning_params=is_production_env(),