mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8656: message about timed buffer logging
This commit is contained in:
parent
4213a22127
commit
08e6e1633c
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue