Project

General

Profile

« Previous | Next » 

Revision 49143

Log json payload of the request upon exception

View differences:

OpenaireResultSubmitter.java
104 104
	String feedResult(@RequestBody final ResultEntry pub,
105 105
			@RequestParam(value = "commit", required = false, defaultValue = "true") final boolean commit)
106 106
			throws MSROException {
107

  
107 108
		try {
108 109
			return feedObject(pub, commit);
109 110
		} catch (final Throwable e) {
......
143 144
			recentResultsQueue.add(oafRecord);
144 145
			return pub.getOpenaireId();
145 146
		} catch (final Throwable e) {
147
			log.debug(pub.toString());
146 148
			throw new MSROException("Error adding publication: " + e.getMessage(), e);
147 149
		}
148 150
	}

Also available in: Unified diff