Merge "Log Ansible Error Lines More Lengthy"

This commit is contained in:
Zuul 2021-07-08 19:08:22 +00:00 committed by Gerrit Code Review
commit df3ee3ad51
1 changed files with 6 additions and 1 deletions

View File

@ -2704,7 +2704,12 @@ class AnsibleJob(object):
idx += 1
if idx < BUFFER_LINES_FOR_SYNTAX:
syntax_buffer.append(line)
line = line[:1024].rstrip()
if line.startswith(b'fatal'):
line = line[:8192].rstrip()
else:
line = line[:1024].rstrip()
ansible_log.debug("Ansible output: %s" % (line,))
self.log.debug("Ansible output terminated")
try: