🙌 OpenHands: AI-Driven Development
fixed output logging (#2244)
மனோஜ்குமார் பழனிச்சாமி2ffd54d258c4
diff --git a/opendevin/runtime/plugins/mixin.py b/opendevin/runtime/plugins/mixin.pyindex 0eadf42def..2b5491ae03 100644--- a/opendevin/runtime/plugins/mixin.py+++ b/opendevin/runtime/plugins/mixin.py@@ -52,14 +52,17 @@ class PluginMixin:)exit_code, output = self.execute(abs_path_to_bash_script, stream=True)if isinstance(output, CancellableStream):+ total_output = ''for line in output:if line.endswith('\n'):line = line[:-1]+ logger.debug(line)+ total_output += line_exit_code = output.exit_code()output.close()if _exit_code != 0:raise RuntimeError(- f'Failed to initialize plugin {requirement.name} with exit code {_exit_code} and output {output}'+ f'Failed to initialize plugin {requirement.name} with exit code {_exit_code} and output {total_output}')logger.info(f'Plugin {requirement.name} initialized successfully')else: