Skip to content

🙌 OpenHands: AI-Driven Development

Refactored Logs (#1939)

மனோஜ்குமார் பழனிச்சாமிd76c425b761e
diff --git a/opendevin/events/observation/commands.py b/opendevin/events/observation/commands.py
index 8d87c31e50..1a199cec8f 100644
--- a/opendevin/events/observation/commands.py
+++ b/opendevin/events/observation/commands.py
@@ -43,7 +43,7 @@ class IPythonRunCellObservation(Observation):
@property
def message(self) -> str:
- return 'Coded executed in IPython cell.'
+ return 'Code executed in IPython cell.'
def __str__(self) -> str:
return f'**IPythonRunCellObservation**\n{self.content}'
diff --git a/opendevin/runtime/docker/ssh_box.py b/opendevin/runtime/docker/ssh_box.py
index 9cab6ae458..9328deed91 100644
--- a/opendevin/runtime/docker/ssh_box.py
+++ b/opendevin/runtime/docker/ssh_box.py
@@ -729,14 +729,14 @@ if __name__ == '__main__':
)
bg_cmd = ssh_box.execute_in_background(
- "while true; do echo 'dot ' && sleep 10; done"
+ "while true; do echo -n '.' && sleep 10; done"
)
sys.stdout.flush()
try:
while True:
try:
- user_input = input('>>> ')
+ user_input = input('$ ')
except EOFError:
logger.info('Exiting...')
break
diff --git a/opendevin/runtime/plugins/mixin.py b/opendevin/runtime/plugins/mixin.py
index 59a28d378d..dc26cc1959 100644
--- a/opendevin/runtime/plugins/mixin.py
+++ b/opendevin/runtime/plugins/mixin.py
@@ -44,7 +44,6 @@ class PluginMixin:
for line in output:
if line.endswith('\n'):
line = line[:-1]
- logger.info(line)
_exit_code = output.exit_code()
output.close()
if _exit_code != 0:
@@ -57,9 +56,7 @@ class PluginMixin:
raise RuntimeError(
f'Failed to initialize plugin {requirement.name} with exit code {exit_code} and output: {output}'
)
- logger.info(
- f'Plugin {requirement.name} initialized successfully\n:{output}'
- )
+ logger.info(f'Plugin {requirement.name} initialized successfully.')
if len(requirements) > 0:
exit_code, output = self.execute('source ~/.bashrc')
diff --git a/opendevin/runtime/plugins/swe_agent_commands/cursors_edit_linting.sh b/opendevin/runtime/plugins/swe_agent_commands/cursors_edit_linting.sh
index 065f5ba607..a11f82f5aa 100644
--- a/opendevin/runtime/plugins/swe_agent_commands/cursors_edit_linting.sh
+++ b/opendevin/runtime/plugins/swe_agent_commands/cursors_edit_linting.sh
@@ -12,7 +12,7 @@
edit() {
if [ -z "$CURRENT_FILE" ]
then
- echo 'No file open. Use the `open` command first.'
+ echo 'No file is opened. Use the `open` command first.'
return
fi
local start_line=$((START_CURSOR - 1))