Change by PMEase JIRA Administrator [21/Dec/13 02:42 PM]
|
Fix Version/s
|
|
5.1.5
[ 11488
]
|
Change by PMEase JIRA Administrator [21/Dec/13 02:42 PM]
|
Field |
Original Value |
New Value |
Status
|
Open
[ 1
]
|
Resolved
[ 5
]
|
Assignee
|
Robin Shine
[ robinshine
]
|
|
Resolution
|
|
Fixed
[ 1
]
|
public void consume(String line)
{
if (line.startsWith("[ERROR] ")) {
Context.getLogger().error(line.substring("[ERROR] ".length()));
this.inErrorBlock = true;
} else if (line.equals("[INFO] BUILD FAILURE")) {
Context.getLogger().error(line.substring("[INFO] ".length()));
this.inErrorBlock = false;
} else if (line.startsWith("[INFO] ")) {
Context.getLogger().debug(line.substring("[INFO] ".length()));
this.inErrorBlock = false;
} else if (line.startsWith("[DEBUG] ")) {
Context.getLogger().debug(line.substring("[DEBUG] ".length()));
this.inErrorBlock = false;
} else if (line.startsWith("[WARNING] ")) {
Context.getLogger().warn(line.substring("[WARNING] ".length()));
this.inErrorBlock = false;
} else if (this.inErrorBlock) {
Context.getLogger().error(line);
} else {
Context.getLogger().debug(line);
}