From 8413f147c989f13820d9cdf4fd2ab97fd76de896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=AE=AE=E0=AE=A9=E0=AF=8B=E0=AE=9C=E0=AF=8D=E0=AE=95?= =?UTF-8?q?=E0=AF=81=E0=AE=AE=E0=AE=BE=E0=AE=B0=E0=AF=8D=20=E0=AE=AA?= =?UTF-8?q?=E0=AE=B4=E0=AE=A9=E0=AE=BF=E0=AE=9A=E0=AF=8D=E0=AE=9A=E0=AE=BE?= =?UTF-8?q?=E0=AE=AE=E0=AE=BF?= Date: Sat, 1 Jun 2024 01:34:36 +0530 Subject: [PATCH] Added logs (#2153) * Logged about config file * Logged Browser env * Update opendevin/core/config.py Co-authored-by: Aleksandar * Update opendevin/core/config.py Co-authored-by: Aleksandar --------- Co-authored-by: Aleksandar --- opendevin/core/config.py | 4 ++-- opendevin/runtime/browser/browser_env.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/opendevin/core/config.py b/opendevin/core/config.py index 755cac8341..e05d0282f5 100644 --- a/opendevin/core/config.py +++ b/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( diff --git a/opendevin/runtime/browser/browser_env.py b/opendevin/runtime/browser/browser_env.py index 0f535aae87..9f46a18761 100644 --- a/opendevin/runtime/browser/browser_env.py +++ b/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():