Project

General

Profile

« Previous | Next » 

Revision 5393

Added by berkley over 14 years ago

added getValue() to the guid so that it prints the guid and not an object id

View differences:

src/edu/ucsb/nceas/metacat/dataone/CrudService.java
318 318
        logMetacat.debug("Returning from CrudService.create()");
319 319
        EventLog.getInstance().log(metacatUrl,
320 320
                username, localId, "create");
321
        logCrud.info("create localId:" + localId + " guid:" + guid);
321
        logCrud.info("create localId:" + localId + " guid:" + guid.getValue());
322 322
        return guid;
323 323
    }
324 324
    
......
365 365
            String username = sessionData.getUserName();
366 366
            EventLog.getInstance().log(metacatUrl,
367 367
                    username, im.getLocalId(guid.getValue()), "update");
368
            logCrud.info("update localId:" + im.getLocalId(guid.getValue()) + " guid:" + guid);
368
            logCrud.info("update localId:" + im.getLocalId(guid.getValue()) + " guid:" + guid.getValue());
369 369
            return guid;
370 370
        }
371 371
        catch(Exception e)
......
639 639
            String username = sessionData.getUserName();
640 640
            EventLog.getInstance().log(metacatUrl,
641 641
                    username, im.getLocalId(guid.getValue()), "read");
642
            logCrud.info("get localId:" + localId + " guid:" + guid);
642
            logCrud.info("get localId:" + localId + " guid:" + guid.getValue());
643 643
            return objectStream;
644 644

  
645 645
        } catch (McdbDocNotFoundException e) {
......
842 842
            String username = sessionData.getUserName();
843 843
            EventLog.getInstance().log(metacatUrl,
844 844
                    username, im.getLocalId(guid.getValue()), "read");
845
            logCrud.info("getSystemMetadata localId: " + localId + " guid:" + guid);
845
            logCrud.info("getSystemMetadata localId: " + localId + " guid:" + guid.getValue());
846 846
            return sysmeta;
847 847
            
848 848
        } catch (McdbDocNotFoundException e) {

Also available in: Unified diff