We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10fe735 commit 32835e1Copy full SHA for 32835e1
readthedocs/doc_builder/environments.py
@@ -455,12 +455,16 @@ def run_command_class(
455
456
if build_cmd.failed:
457
if warn_only:
458
- msg = 'Command {cmd} failed'.format(cmd=build_cmd.get_command())
+ msg = "Command failed"
459
+ build_output = ""
460
if build_cmd.output:
- truncated_output = "\n".join(build_cmd.output.split("\n")[:10])
461
- msg += ":\n{out}".format(out=truncated_output)
+ build_output += "\n".join(build_cmd.output.split("\n")[10:])
462
+ build_output += "\n ..Output Truncated.."
463
+ build_output += "\n".join(build_cmd.output.split("\n")[:10])
464
log.warning(
465
msg,
466
+ command=build_cmd.get_command(),
467
+ output=truncated_output,
468
project_slug=self.project.slug if self.project else '',
469
version_slug=self.version.slug if self.version else '',
470
)
0 commit comments