Commit 91c35404 authored by Jérome Perrin's avatar Jérome Perrin

standalone: Only include 30 lines of error in waitForInstance

Now that slapos node instance outputs summary of problems, no need to
pollute the logs so much
parent 8306282f
......@@ -593,17 +593,13 @@ class StandaloneSlapOS(object):
error_lines=error_lines,
)
def waitForInstance(self, max_retry=0, debug=False, error_lines=500):
def waitForInstance(self, max_retry=0, debug=False, error_lines=30):
"""Instantiate all partitions previously requested for start.
This method retries on errors. If after `max_retry` times there's
still an error, the error is raised, containing `error_lines` of output
from the buildout command.
With instance with multiple partition, the failing partition is not
always the last processed one, so by default we include more lines of
output.
If `debug` is true, buildout is executed in the foreground, with flags to
drop in a debugger session if error occurs.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment