private void openEditLog() throws IOException {
    if (editsNewFile.exists()) {
      LOG.info("Trying to load edit log from 'edits.new'");
      try {
        openInputStream(editsNewFile);
        openedFromEditsNew = true;
        return;
      } catch (IOException e) {
        LOG.info("Failed to load from 'edits.new'. Trying from 'edits'", e);
      }
    }
    
    openInputStream(editsFile);
    openedFromEditsNew = false;
    LOG.info("Edit log loaded from 'edits'");
  }
private void openEditLog ( ) throws IOException { if ( editsNewFile . exists ( ) ) { LOG . info ( "Trying to load edit log from 'edits.new'" ) ; try { openInputStream ( editsNewFile ) ; openedFromEditsNew = true ; return ; } catch ( IOException e ) { LOG . info ( "Failed to load from 'edits.new'. Trying from 'edits'" , e ) ; } } openInputStream ( editsFile ) ; openedFromEditsNew = false ; LOG . info ( "Edit log loaded from 'edits'" ) ; }
Tries to load the edit log file: first from 'edits.new', and if it
doesen't exist, from 'edits'.

@throws IOException If a fatal error occurred.