Fix split buffer with inconsistently delimited json objects.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
3661e8bc74
commit
15d0c60a73
6 changed files with 62 additions and 22 deletions
|
|
@ -33,7 +33,6 @@ from .progress_stream import stream_output
|
|||
from .progress_stream import StreamOutputError
|
||||
from .utils import json_hash
|
||||
from .utils import parallel_execute
|
||||
from .utils import split_buffer
|
||||
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
|
@ -724,7 +723,7 @@ class Service(object):
|
|||
)
|
||||
|
||||
try:
|
||||
all_events = stream_output(split_buffer(build_output), sys.stdout)
|
||||
all_events = stream_output(build_output, sys.stdout)
|
||||
except StreamOutputError as e:
|
||||
raise BuildError(self, six.text_type(e))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue