Pārlūkot izejas kodu

Added logs (#2153)

* Logged about config file

* Logged Browser env

* Update opendevin/core/config.py

Co-authored-by: Aleksandar <isavitaisa@gmail.com>

* Update opendevin/core/config.py

Co-authored-by: Aleksandar <isavitaisa@gmail.com>

---------

Co-authored-by: Aleksandar <isavitaisa@gmail.com>
மனோஜ்குமார் பழனிச்சாமி 1 gadu atpakaļ
vecāks
revīzija
8413f147c9

+ 2 - 2
opendevin/core/config.py

@@ -331,8 +331,8 @@ def load_from_toml(config: AppConfig, toml_file: str = 'config.toml'):
     try:
         with open(toml_file, 'r', encoding='utf-8') as toml_contents:
             toml_config = toml.load(toml_contents)
-    except FileNotFoundError:
-        # the file is optional, we don't need to do anything
+    except FileNotFoundError as e:
+        logger.info(f'Config file not found: {e}')
         return
     except toml.TomlDecodeError:
         logger.warning(

+ 1 - 0
opendevin/runtime/browser/browser_env.py

@@ -97,6 +97,7 @@ class BrowserEnv:
             response_id, _ = self.agent_side.recv()
             if response_id == 'ALIVE':
                 return True
+            logger.info(f'Browser env is not alive. Response ID: {response_id}')
 
     def close(self):
         if not self.process.is_alive():