Revision 47214
Added by Argiro Kokogiannaki almost 7 years ago
DMFContextHandler.java | ||
---|---|---|
5 | 5 |
import eu.dnetlib.data.claimsDemo.ContextUtils; |
6 | 6 |
import eu.dnetlib.data.claimsDemo.QueryGenerator; |
7 | 7 |
import eu.dnetlib.data.claimsDemo.SqlDAO; |
8 |
import org.apache.log4j.Logger; |
|
8 | 9 |
import org.xml.sax.SAXException; |
9 | 10 |
|
10 | 11 |
import javax.xml.parsers.ParserConfigurationException; |
... | ... | |
16 | 17 |
* Created by kiatrop on 5/2/2016. |
17 | 18 |
*/ |
18 | 19 |
public class DMFContextHandler { |
20 |
private static Logger log = Logger.getLogger(DMFContextHandler.class ); |
|
19 | 21 |
|
20 | 22 |
SqlDAO sqlDAO = null; |
21 | 23 |
QueryGenerator queryGenerator = null; |
... | ... | |
49 | 51 |
|
50 | 52 |
} catch (Exception e) { |
51 | 53 |
e.printStackTrace(); |
52 |
System.err.println("ContextUtils: Couldn't get Egi label for id " + context.getOpenaireId());
|
|
54 |
log.error("ContextUtils: Couldn't get Egi label for id " + context.getOpenaireId());
|
|
53 | 55 |
} |
54 | 56 |
return context; |
55 | 57 |
|
Also available in: Unified diff
adding log messages for creating, fetching and deleting claims