Skip to content

Commit

Permalink
set logging level INFO if not on prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantisan committed Oct 13, 2023
1 parent 42e93b8 commit 7979df3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mind_palace/app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import logging

import extract
import index
import openai
Expand All @@ -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(),
Expand Down

0 comments on commit 7979df3

Please sign in to comment.