Revision 57248
Added by Alessia Bardi over 4 years ago
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
Better logging