diff --git a/readthedocs/doc_builder/environments.py b/readthedocs/doc_builder/environments.py index 96be8c18bbd..5d6007755b1 100644 --- a/readthedocs/doc_builder/environments.py +++ b/readthedocs/doc_builder/environments.py @@ -458,9 +458,9 @@ def run_command_class( msg = "Command failed" build_output = "" if build_cmd.output: - build_output += "\n".join(build_cmd.output.split("\n")[10:]) - build_output += "\n ..Output Truncated.." build_output += "\n".join(build_cmd.output.split("\n")[:10]) + build_output += "\n ..Output Truncated.. \n" + build_output += "\n".join(build_cmd.output.split("\n")[-10:]) log.warning( msg, command=build_cmd.get_command(),