Project

General

Profile

« Previous | Next » 

Revision 49368

datasets

View differences:

GenericDoiMdstorePlugin.java
41 41
		try {
42 42
			sslContextBuilder.loadTrustMaterial(null, (chain, authType) -> true);
43 43
			sslSocketFactory = new SSLConnectionSocketFactory(sslContextBuilder.build());
44
		} catch (final NoSuchAlgorithmException e) {
45
			// TODO Auto-generated catch block
46
			e.printStackTrace();
47
		} catch (final KeyStoreException e) {
48
			// TODO Auto-generated catch block
49
			e.printStackTrace();
50
		} catch (final KeyManagementException e) {
51
			// TODO Auto-generated catch block
52
			e.printStackTrace();
44
		} catch (final NoSuchAlgorithmException | KeyStoreException | KeyManagementException e) {
45
			log.error(e);;
53 46
		}
54 47
	}
55 48

  
......
78 71
				for (final Object o : doc.selectNodes("//*[local-name()='alternateIdentifier' and @alternateIdentifierType='doi']")) {
79 72
					final String doi = ((Node) o).getText().trim();
80 73

  
81
					log.info("  Record " + recordId + " has doi " + doi);
74
					log.debug("  Record " + recordId + " has doi " + doi);
82 75
					final String response = download(doi);
83 76
					if ((response != null) && updateDocument(doc, response)) {
84 77
						collPubs.updateOne(new BasicDBObject("id", recordId), new BasicDBObject("$set", new BasicDBObject("body", doc.asXML())));

Also available in: Unified diff