CLOUDSTACK-8656: message about timed buffer logging

This commit is contained in:
Daan Hoogland 2015-08-14 13:29:35 +02:00
parent 4213a22127
commit 08e6e1633c
1 changed files with 4 additions and 2 deletions

View File

@ -19,11 +19,11 @@
package com.cloud.utils.script;
import org.apache.log4j.Logger;
import java.io.BufferedReader;
import java.io.IOException;
import org.apache.log4j.Logger;
/**
*/
public abstract class OutputInterpreter {
@ -50,6 +50,7 @@ public abstract class OutputInterpreter {
};
public static class TimedOutLogger extends OutputInterpreter {
private static final Logger s_logger = Logger.getLogger(TimedOutLogger.class);
Process _process;
public TimedOutLogger(Process process) {
@ -76,6 +77,7 @@ public abstract class OutputInterpreter {
buff.append(reader.readLine());
}
} catch (IOException e) {
s_logger.info("[ignored] can not append line to buffer",e);
}
return buff.toString();