Project

General

Profile

« Previous | Next » 

Revision 5407

Added by berkley over 14 years ago

adding some debug info

View differences:

src/edu/ucsb/nceas/metacat/dataone/CrudService.java
924 924
        
925 925
        // if the session id is registered in SessionService, get the
926 926
        // SessionData for it. Otherwise, use the public session.
927
        System.out.println("sessionid: " + sessionId);
927 928
        if (sessionId != null &&
928 929
            !sessionId.toLowerCase().equals("public") &&
929 930
            SessionService.getInstance().isSessionRegistered(sessionId)) 
930 931
        {
931
            //System.out.println("looking for registered session");
932
            System.out.println("looking for registered session");
932 933
            sessionData = SessionService.getInstance().getRegisteredSession(sessionId);
933 934
        } else {
934
            //System.out.println("returning public session");
935
            System.out.println("returning public session");
935 936
            sessionData = SessionService.getInstance().getPublicSession();
936 937
        }
937
        
938
       
939
	System.out.println("Session user is now: " + sessionData.getUserName());
940
 
938 941
        return sessionData;
939 942
    }
940 943

  

Also available in: Unified diff