Project

General

Profile

« Previous | Next » 

Revision 57248

Better logging

View differences:

modules/dnet-parthenos-publisher/trunk/src/main/java/eu/dnetlib/parthenos/jrr/JRRPublisherHelper.java
39 39
			for(String subject : subjects) {
40 40
				try {
41 41
					String record = virtuosoReadAPI.getRDF(subject, typeName, apiId, ANY_TIME_QUERY_MS);
42
					//request publishing on JRR (need to have the OAI header with the proper subject as objIdentifier
43 42
					jrrPublisher.register(record, subject, datasourceName);
44 43
					countSuccess++;
45 44
				}catch(Throwable t){
46
					log.warn(String.format("Cannot publish %s with URL %s", typeName, subject));
47
					log.warn(t.getCause());
48
					t.printStackTrace();
45
					log.error(String.format("Cannot publish %s with URL %s", typeName, subject), t);
49 46
					countFailed++;
50 47
				}
51 48
			}

Also available in: Unified diff