Spaces:
Running
Running
MVPilgrim
commited on
Commit
·
67cc338
1
Parent(s):
0c173aa
debug
Browse files
app.py
CHANGED
@@ -26,14 +26,15 @@ try:
|
|
26 |
weaviate_logger = logging.getLogger("httpx")
|
27 |
weaviate_logger.setLevel(logging.WARNING)
|
28 |
logger = logging.getLogger(__name__)
|
29 |
-
logging.basicConfig(level=logging.INFO)
|
30 |
st.session_state.weaviate_logger = weaviate_logger
|
31 |
st.session_state.logger = logger
|
32 |
else:
|
33 |
weaviate_logger = st.session_state.weaviate_logger
|
34 |
logger = st.session_state.logger
|
35 |
|
36 |
-
|
|
|
37 |
def runStartup():
|
38 |
logger.info("### Running startup.sh")
|
39 |
try:
|
@@ -531,7 +532,7 @@ try:
|
|
531 |
logger.info("### on_getAllRagButton_Clicked entered.")
|
532 |
st.session_state.ragpTA = getAllRagData()
|
533 |
|
534 |
-
logger.info("### on_getAllRagButton_Clicked
|
535 |
|
536 |
with st.sidebar:
|
537 |
st.selectRag = st.checkbox("Enable Query With RAG",value=False,key="selectRag",help=None,on_change=None,args=None,kwargs=None,disabled=False,label_visibility="visible")
|
|
|
26 |
weaviate_logger = logging.getLogger("httpx")
|
27 |
weaviate_logger.setLevel(logging.WARNING)
|
28 |
logger = logging.getLogger(__name__)
|
29 |
+
logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s',level=logging.INFO)
|
30 |
st.session_state.weaviate_logger = weaviate_logger
|
31 |
st.session_state.logger = logger
|
32 |
else:
|
33 |
weaviate_logger = st.session_state.weaviate_logger
|
34 |
logger = st.session_state.logger
|
35 |
|
36 |
+
logging.info("###################### PROGRAM ENTRY ###########################")
|
37 |
+
|
38 |
def runStartup():
|
39 |
logger.info("### Running startup.sh")
|
40 |
try:
|
|
|
532 |
logger.info("### on_getAllRagButton_Clicked entered.")
|
533 |
st.session_state.ragpTA = getAllRagData()
|
534 |
|
535 |
+
logger.info("### on_getAllRagButton_Clicked exited.")
|
536 |
|
537 |
with st.sidebar:
|
538 |
st.selectRag = st.checkbox("Enable Query With RAG",value=False,key="selectRag",help=None,on_change=None,args=None,kwargs=None,disabled=False,label_visibility="visible")
|