Project

General

Profile

« Previous | Next » 

Revision 2663

Added by sgarg over 18 years ago

Replacing MetaCatUtil.debugMessage or MetaCatUtil.logMetacat call with logMetacat (private Logger object) call

View differences:

AssociateAccessPolicy.java
48 48
import java.util.Enumeration;
49 49
import java.io.BufferedWriter;
50 50

  
51
import org.apache.log4j.Logger;
51 52

  
53

  
52 54
/**This class is in order to fix a problem. It doesn't has functionality for 
53 55
 *Metacat. 
54 56
 *In Currently, some document in xml_document table doesn't have entries in 
......
69 71
  private Vector itsDataSetIdWithouAccessEntry=null;
70 72
  private Hashtable docIdMapDataSetId=null;
71 73
  private MetaCatUtil util=null;
72
 
74
  private Logger logMetacat = Logger.getLogger(AssociateAccessPolicy.class);
75
  
73 76
  /**
74 77
   * the main routine used to associate access policy
75 78
   */
......
199 202
    }//try
200 203
    catch (SQLException e)
201 204
    {
202
    	MetaCatUtil.logMetacat.info("Error in getDocidListForDataPackage: "
205
    	logMetacat.error("Error in getDocidListForDataPackage: "
203 206
                            +e.getMessage());
204 207
    }//catch
205 208
    //System.out.println("docid in access table");
......
285 288
    catch (SQLException e)
286 289
    {
287 290
      pStmt.close();
288
      MetaCatUtil.logMetacat.info("Error in getDocidListForDataPackage: "
291
      logMetacat.error("Error in getDocidListForDataPackage: "
289 292
                            +e.getMessage());
290 293
    }//catch
291 294
    //System.out.println("docid without access entry:");
......
481 484
        {
482 485
          pStmt.close();
483 486
          insertStatement.close();
484
          MetaCatUtil.logMetacat.info("Error in getDocidListForDataPackadge: "
487
          logMetacat.error("Error in getDocidListForDataPackadge: "
485 488
                            +e.getMessage());
486 489
        }//catch
487 490
        

Also available in: Unified diff