| | |
| | | import java.io.IOException; |
| | | import java.util.zip.GZIPOutputStream; |
| | | |
| | | import static org.opends.server.loggers.debug.DebugLogger.debugCaught; |
| | | import static org.opends.server.loggers.debug.DebugLogger.debugEnabled; |
| | | import static org.opends.server.loggers.debug.DebugLogger.*; |
| | | import org.opends.server.loggers.debug.DebugTracer; |
| | | import org.opends.server.types.DebugLogLevel; |
| | | |
| | | /** |
| | |
| | | */ |
| | | public class GZIPAction implements PostRotationAction |
| | | { |
| | | /** |
| | | * The tracer object for the debug logger. |
| | | */ |
| | | private static final DebugTracer TRACER = getTracer(); |
| | | |
| | | |
| | | private File originalFile; |
| | | private File newFile; |
| | |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | debugCaught(DebugLogLevel.ERROR, ioe); |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, ioe); |
| | | } |
| | | if (inputStreamOpen) |
| | | { |
| | |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | debugCaught(DebugLogLevel.ERROR, fe); |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, fe); |
| | | } |
| | | // Cannot do much. Ignore. |
| | | } |
| | |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | debugCaught(DebugLogLevel.ERROR, ge); |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, ge); |
| | | } |
| | | // Cannot do much. Ignore. |
| | | } |