mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
29.35.2014 f0e161f5307221316eef2c2c7aa8261c66d0d83b
opendj3-server-dev/src/server/org/opends/server/loggers/ZIPAction.java
@@ -22,6 +22,7 @@
 *
 *
 *      Copyright 2006-2008 Sun Microsystems, Inc.
 *      Portions Copyright 2014 ForgeRock AS.
 */
package org.opends.server.loggers;
@@ -32,9 +33,7 @@
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
import static org.opends.server.loggers.debug.DebugLogger.*;
import org.opends.server.loggers.debug.DebugTracer;
import org.opends.server.types.DebugLogLevel;
import org.forgerock.i18n.slf4j.LocalizedLogger;
/**
 * This class implements a post rotation action that compresses
@@ -42,11 +41,8 @@
 */
public class ZIPAction implements PostRotationAction
{
  /**
   * The tracer object for the debug logger.
   */
  private static final DebugTracer TRACER = getTracer();
  private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass();
  private File originalFile;
  private File newFile;
@@ -124,10 +120,7 @@
      return true;
    } catch(IOException ioe)
    {
      if (debugEnabled())
      {
        TRACER.debugCaught(DebugLogLevel.ERROR, ioe);
      }
      logger.traceException(ioe);
      if (inputStreamOpen)
      {
        try
@@ -136,10 +129,7 @@
        }
        catch (Exception fe)
        {
          if (debugEnabled())
          {
            TRACER.debugCaught(DebugLogLevel.ERROR, fe);
          }
          logger.traceException(fe);
          // Cannot do much. Ignore.
        }
      }
@@ -151,10 +141,7 @@
        }
        catch (Exception ze)
        {
          if (debugEnabled())
          {
            TRACER.debugCaught(DebugLogLevel.ERROR, ze);
          }
          logger.traceException(ze);
          // Cannot do much. Ignore.
        }
      }