Project

General

Profile

« Previous | Next » 

Revision 9705

merge to trunk: debugging statements that were added in 2.6 branch

View differences:

src/edu/ucsb/nceas/metacat/PermissionController.java
30 30
import java.sql.PreparedStatement;
31 31
import java.sql.ResultSet;
32 32
import java.sql.SQLException;
33
import java.util.Arrays;
33 34
import java.util.Enumeration;
34 35
import java.util.Hashtable;
35 36
import java.util.Vector;
......
162 163
    	return true;
163 164
    }
164 165

  
166
    logMetacat.debug("Checking permission on " + this.guid + " for user: " + user + " and groups: " + Arrays.toString(groups));
167
    
165 168
    //create a userpackage including user, public and group member
166 169
    userPackage=createUsersPackage(user, groups);
167 170

  
......
795 798
    //bind every elenment in user name array
796 799
    for (int i=0;i<lengthOfArray; i++)
797 800
    {
801
        logMetacat.debug("Checking permission for principal: " + principals[i] );
802
        logMetacat.debug("SQL: " + pStmt.toString());
803
        
798 804
      pStmt.setString(2, principals[i]);
799 805
      pStmt.execute();
800 806
      rs=pStmt.getResultSet();

Also available in: Unified diff