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>
This commit is contained in:
மனோஜ்குமார் பழனிச்சாமி
2024-06-01 01:34:36 +05:30
committed by GitHub
parent 01296ff79d
commit 8413f147c9
2 changed files with 3 additions and 2 deletions

View File

@@ -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(

View File

@@ -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():