mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-04-29 03:00:45 -04:00
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:
committed by
GitHub
parent
01296ff79d
commit
8413f147c9
@@ -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(
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user