Merged bug fix from Stable into Unstable

This commit is contained in:
Khalid Shakir 2011-09-09 01:34:55 -04:00
commit 510d5e7730
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ class FunctionEdge(val function: QFunction, val inputs: QNode, val outputs: QNod
val maxLines = 100
val tailLines = IOUtils.tail(errorFile, maxLines)
val nl = "%n".format()
val summary = if (tailLines.size <= maxLines) "Last %d lines".format(maxLines) else "Contents"
val summary = if (tailLines.size > maxLines) "Last %d lines".format(maxLines) else "Contents"
logger.error("%s of %s:%n%s".format(summary, errorFile, tailLines.mkString(nl)))
} else {
logger.error("Unable to access log file: %s".format(errorFile))