Ver código fonte

refactor: comment out warning logs for missing config values in config_reader.py

myhloli 5 meses atrás
pai
commit
a8747f1deb
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      mineru/utils/config_reader.py

+ 2 - 2
mineru/utils/config_reader.py

@@ -101,7 +101,7 @@ def get_latex_delimiter_config():
     config = read_config()
     latex_delimiter_config = config.get('latex-delimiter-config')
     if latex_delimiter_config is None:
-        logger.warning(f"'latex-delimiter-config' not found in {CONFIG_FILE_NAME}, use 'None' as default")
+        # logger.warning(f"'latex-delimiter-config' not found in {CONFIG_FILE_NAME}, use 'None' as default")
         return None
     else:
         return latex_delimiter_config
@@ -111,7 +111,7 @@ def get_llm_aided_config():
     config = read_config()
     llm_aided_config = config.get('llm-aided-config')
     if llm_aided_config is None:
-        logger.warning(f"'llm-aided-config' not found in {CONFIG_FILE_NAME}, use 'None' as default")
+        # logger.warning(f"'llm-aided-config' not found in {CONFIG_FILE_NAME}, use 'None' as default")
         return None
     else:
         return llm_aided_config