From ec14a3e99435f82453f444b5b6ce90ff55f8b4b2 Mon Sep 17 00:00:00 2001 From: "Yuichiro Tachibana (Tsuchiya)" Date: Thu, 14 Mar 2024 17:58:58 +0900 Subject: [PATCH] Fix log level --- lib/streamlit/runtime/scriptrunner/script_runner.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/streamlit/runtime/scriptrunner/script_runner.py b/lib/streamlit/runtime/scriptrunner/script_runner.py index 98cfa5a38306e..ec54d376eba38 100644 --- a/lib/streamlit/runtime/scriptrunner/script_runner.py +++ b/lib/streamlit/runtime/scriptrunner/script_runner.py @@ -589,7 +589,7 @@ async def _run_script(self, rerun_data: RerunData) -> None: ): package_name = LAZY_INSTALL_LIST[missed_module_name] lazy_install_tried_modules.add(missed_module_name) - _LOGGER.debug( + _LOGGER.info( "Attempting to install missing module: %s", package_name ) try: @@ -597,9 +597,10 @@ async def _run_script(self, rerun_data: RerunData) -> None: await micropip.install(package_name) continue - except Exception as ex: - _LOGGER.debug( - "Failed to lazy-install missing module: %s", ex + except Exception as micropip_err: + _LOGGER.warning( + "Failed to lazy-install missing module: %s", + micropip_err, ) self._session_state[SCRIPT_RUN_WITHOUT_ERRORS_KEY] = False