def logtail(logcollection, logfunc, header, maxlen=25):
if len(logcollection) == 0:
- logfunc(header)
- logfunc(" ** log is empty **")
+ logfunc("%s\n%s", header, " ** log is empty **")
return
containersapi = ("crunch-run.txt" in logcollection)
loglines = mergelogs.values()[0]
logtxt = "\n ".join(l.strip() for l in loglines)
- logfunc(header)
- logfunc("\n %s", logtxt)
- return logtxt
+ logfunc("%s\n\n %s", header, logtxt)