Browse Source

Refactored Logs (#1939)

மனோஜ்குமார் பழனிச்சாமி 1 year ago
parent
commit
d76c425b76

+ 1 - 1
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}'

+ 2 - 2
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

+ 1 - 4
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')

+ 1 - 1
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))