Project

General

Profile

« Previous | Next » 

Revision 4420

use correct log directory/file for replication errors

View differences:

src/edu/ucsb/nceas/metacat/MetacatReplication.java
1946 1946
  {
1947 1947
    try
1948 1948
    {
1949
      FileOutputStream fos = new FileOutputStream(
1950
                                 PropertyService.getProperty("replicationerrorlog"), true);
1949
    	FileOutputStream fos = 
1950
			new FileOutputStream(PropertyService.getProperty("replication.logdir")
1951
				+ "/metacatreplicationerror.log", true);
1951 1952
      PrintWriter pw = new PrintWriter(fos);
1952 1953
      SimpleDateFormat formatter = new SimpleDateFormat ("yy-MM-dd HH:mm:ss");
1953 1954
      java.util.Date localtime = new java.util.Date();
......
1959 1960
    }
1960 1961
    catch(Exception e)
1961 1962
    {
1962
      System.out.println("error writing to replication log from " +
1963
                         "MetacatReplication.replLog: " + e.getMessage());
1963
      System.out.println("error writing to replication error log from " +
1964
                         "MetacatReplication.replErrorLog: " + e.getMessage());
1964 1965
      //e.printStackTrace(System.out);
1965 1966
    }
1966 1967
  }

Also available in: Unified diff