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 6ad80cc commit 68226d1Copy full SHA for 68226d1
readthedocs/doc_builder/environments.py
@@ -455,11 +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:
- msg += ':\n{out}'.format(out=build_cmd.output)
461
+ 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=build_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